From ccb12bcf836bd816c675e34a4135af390b1705b0 Mon Sep 17 00:00:00 2001 From: lasconic Date: Fri, 20 Jul 2012 10:04:51 +0200 Subject: [PATCH] fix crash when entering rest at the end of the score --- libmscore/edit.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libmscore/edit.cpp b/libmscore/edit.cpp index f4669cce8b1c..492536e02de1 100644 --- a/libmscore/edit.cpp +++ b/libmscore/edit.cpp @@ -1455,12 +1455,8 @@ void Score::cmdEnterRest(const TDuration& d) int track = _is.track(); NoteVal nval; - Segment* seg = setNoteRest(_is.segment(), track, nval, d.fraction(), AUTO); - if (seg) { - ChordRest* cr = static_cast(seg->element(track)); - if (cr) - nextInputPos(cr, false); - } + setNoteRest(_is.segment(), track, nval, d.fraction(), AUTO); + moveToNextInputPos(); _is.rest = false; // continue with normal note entry endCmd(); }