musescore/MuseScore — pull request #983 by MarcSabatella (2014-06-17 22:39:00+00:00)
Title: fix #25797: enharmonic spelling of Shift+note

Borrowed the line to set tpc from putNote() which seems to get it right