Skip to content

Commit

Permalink
Fixed undo not update dynamicType
Browse files Browse the repository at this point in the history
  • Loading branch information
CMakeScore committed Dec 17, 2024
1 parent d3a991d commit 798a444
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engraving/dom/textedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ void TextBase::endEdit(EditData& ed)

ted->cursor()->endEdit();

if (isDynamic()) {
undoChangeProperty(Pid::DYNAMIC_TYPE, xmlText());
}

UndoStack* undo = score()->undoStack();
IF_ASSERT_FAILED(undo) {
return;
Expand Down Expand Up @@ -236,6 +232,10 @@ void TextBase::endEdit(EditData& ed)
// change property to set text to actual value again - this also changes text of linked elements
undoChangeProperty(Pid::TEXT, actualXmlText);

if (isDynamic()) {
undoChangeProperty(Pid::DYNAMIC_TYPE, actualXmlText);
}

renderer()->layoutText1(this);
}

Expand Down

0 comments on commit 798a444

Please sign in to comment.