Skip to content

Commit

Permalink
fix #31721: crash after entry of empty harmony/fb
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Sep 2, 2014
1 parent 2e61d6b commit 97cd5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/editelement.cpp
Expand Up @@ -101,13 +101,13 @@ void ScoreView::endEdit()
harmonyEndEdit();
else if (tp == Element::Type::FIGURED_BASS)
figuredBassEndEdit();

if (editObject->isText()) {
else if (editObject->isText()) {
Text* text = static_cast<Text*>(editObject);
if (text->isEmpty())
_score->undoRemoveElement(text);
editObject = nullptr;
}

_score->endCmd();
mscore->endCmd();

Expand Down

0 comments on commit 97cd5a3

Please sign in to comment.