Skip to content

Commit

Permalink
If the relevant property flag isn't found in the HairpinSegment, look…
Browse files Browse the repository at this point in the history
… in the Hairpin
  • Loading branch information
mike-spa committed Sep 17, 2024
1 parent 8cd0435 commit 3769812
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/engraving/dom/hairpin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ EngravingItem* HairpinSegment::drop(EditData& data)
return d;
}

void HairpinSegment::setPropertyFlags(Pid id, PropertyFlags f)
{
int i = getPropertyFlagsIdx(id);
if (i == -1) {
// Can happen (for example when edit-dragging the aperture) that we're editing
// the HairpinSegment but the relevant property belongs to the Hairpin.
hairpin()->setPropertyFlags(id, f);
return;
}
m_propertyFlagsList[i] = f;
}

//---------------------------------------------------------
// gripsPositions
//---------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/engraving/dom/hairpin.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class HairpinSegment final : public TextLineBaseSegment
bool acceptDrop(EditData&) const override;
EngravingItem* drop(EditData&) override;

void setPropertyFlags(Pid id, PropertyFlags f) override;

bool m_drawCircledTip = false;
PointF m_circledTip;
double m_circledTipRadius = 0.0;
Expand Down

0 comments on commit 3769812

Please sign in to comment.