Skip to content

Commit

Permalink
Code review fixes - a few more small ones
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Sep 24, 2023
1 parent 8338684 commit 34c65c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/engraving/dom/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4035,11 +4035,7 @@ MeasureBase* Score::insertMeasure(ElementType type, MeasureBase* beforeMeasure,

MeasureBase* newMeasureBase = toMeasureBase(Factory::createItem(type, score->dummy()));
newMeasureBase->setTick(tick);
if (dontCloneFrameToParts) {
newMeasureBase->setExcludeFromOtherParts(true);
} else {
newMeasureBase->setExcludeFromOtherParts(false);
}
newMeasureBase->setExcludeFromOtherParts(dontCloneFrameToParts);

if (score == this) {
result = newMeasureBase;
Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/engravingitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ PropertyPropagation EngravingItem::propertyPropagation(EngravingItem* destinatio
Score* destinationScore = destinationItem->score();
bool isTextProperty = mu::contains(textProperties(), propertyId);

if (isTextProperty && isPropertyLinkedToMaster(propertyId) || sourceScore == destinationScore) {
if ((isTextProperty && isPropertyLinkedToMaster(propertyId)) || sourceScore == destinationScore) {
return PropertyPropagation::PROPAGATE;
}

Expand Down

0 comments on commit 34c65c6

Please sign in to comment.