From 7bfe95eaf1882fcf77e69d0f3c6990032c7d91ea Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Fri, 15 Aug 2008 13:26:53 +0000 Subject: [PATCH] Fixed hang when pressing return after opening new document --- Sources/VLSheetViewNotes.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/VLSheetViewNotes.mm b/Sources/VLSheetViewNotes.mm index 23c1a9b..586a34b 100644 --- a/Sources/VLSheetViewNotes.mm +++ b/Sources/VLSheetViewNotes.mm @@ -20,7 +20,7 @@ - (void) addNoteAtCursor { - if (fCursorMeasure > -1) { + if (fCursorMeasure > -1 && fCursorActualPitch) { VLNote newNote(1, fClickMode==' ' ? fCursorActualPitch : VLNote::kNoPitch); switch (fCursorAccidental) { case kMusicFlatCursor: