Fixed hang when pressing return after opening new document

This commit is contained in:
Matthias Neeracher 2008-08-15 13:26:53 +00:00
parent 86514e05a5
commit 7bfe95eaf1

View File

@ -20,7 +20,7 @@
- (void) addNoteAtCursor - (void) addNoteAtCursor
{ {
if (fCursorMeasure > -1) { if (fCursorMeasure > -1 && fCursorActualPitch) {
VLNote newNote(1, fClickMode==' ' ? fCursorActualPitch : VLNote::kNoPitch); VLNote newNote(1, fClickMode==' ' ? fCursorActualPitch : VLNote::kNoPitch);
switch (fCursorAccidental) { switch (fCursorAccidental) {
case kMusicFlatCursor: case kMusicFlatCursor: