Skip to content

Commit

Permalink
Merge pull request #6127 from anatoly-os/ao_305253_fix
Browse files Browse the repository at this point in the history
fix #305253: Crash on adding text on a text frame (MS 3.5 Alpha, debu…
  • Loading branch information
anatoly-os committed May 28, 2020
2 parents 4acdec6 + 18e625b commit 107f321
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libmscore/textedit.cpp
Expand Up @@ -122,6 +122,13 @@ void TextBase::endEdit(EditData& ed)
newlyAdded = true;
undo->mergeCommands(ted->startUndoIdx - 1);
}
else {
IF_ASSERT_FAILED(parent()) {
return;
}

newlyAdded = (Ms::toTBox(parent()) != nullptr);
}
}

if (actualPlainText.isEmpty()) {
Expand Down

0 comments on commit 107f321

Please sign in to comment.