Fix rehersal marks lose property

This commit is contained in:
Michele Spagnolo 2023-08-24 13:59:07 +02:00 committed by Roman Pudashkin
parent 4845e85c92
commit 84b2da24ba
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ void RehearsalMark::applyTypeStyle()
{
const auto& elemStyleMap = (_type == Type::Main ? mainRehearsalMarkStyle : additionalRehearsalMarkStyle);
for (const auto& elem : elemStyleMap) {
setProperty(elem.pid, score()->styleV(elem.sid));
if (propertyFlags(elem.pid) == PropertyFlags::STYLED) {
setProperty(elem.pid, score()->styleV(elem.sid));
}
}
}