Merge pull request #20184 from cbjeukendrup/fix_undo_edit_chord_symbol

Fix undo editing chord symbol text
This commit is contained in:
RomanPudashkin 2023-11-27 16:46:55 +02:00 committed by GitHub
commit 610ee29aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3422,7 +3422,14 @@ void TextBase::undoChangeProperty(Pid id, const PropertyValue& v, PropertyFlags
}
}
if (propertyGroup(id) != PropertyGroup::TEXT) {
static const PropertyIdSet CHARACTER_SPECIFIC_PROPERTIES {
Pid::FONT_STYLE,
Pid::FONT_FACE,
Pid::FONT_SIZE,
Pid::TEXT_SCRIPT_ALIGN
};
if (!mu::contains(CHARACTER_SPECIFIC_PROPERTIES, id)) {
EngravingItem::undoChangeProperty(id, v, ps);
return;
}