Skip to content

Commit

Permalink
fix #44856: undo melisma
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jan 20, 2015
1 parent 4516685 commit f1bf9e7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mscore/editlyrics.cpp
Expand Up @@ -302,11 +302,13 @@ void ScoreView::lyricsUnderscore()
break;
}

_score->startCmd();

// one-chord melisma?
// if still at melisma initial chord and there is a valid next chord (if not,
// there will be no melisma anyway), set a temporary melisma duration
if (oldLyrics == lyrics && nextSegment)
lyrics->setTicks(Lyrics::TEMP_MELISMA_TICKS);
lyrics->undoChangeProperty(P_ID::LYRIC_TICKS, Lyrics::TEMP_MELISMA_TICKS);

if (nextSegment == 0) {
if (oldLyrics) {
Expand All @@ -325,12 +327,13 @@ void ScoreView::lyricsUnderscore()
mscore->changeState(STATE_NORMAL);
if (oldLyrics)
_score->select(oldLyrics, SelectType::SINGLE, 0);
_score->update();
//_score->update();
_score->setLayoutAll(true);
_score->endCmd();
return;
}

// if a place for a new lyrics has been found, create a lyrics there
_score->startCmd();

const QList<Lyrics*>* ll = nextSegment->lyricsList(track);
lyrics = ll->value(verse);
Expand Down Expand Up @@ -368,7 +371,8 @@ void ScoreView::lyricsUnderscore()
((Lyrics*)editObject)->moveCursorToEnd();

_score->setLayoutAll(true);
_score->update();
//_score->update();
_score->endCmd();
}

//---------------------------------------------------------
Expand Down

0 comments on commit f1bf9e7

Please sign in to comment.