Skip to content

Commit

Permalink
regression: fix hairpin position in palette
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Nov 5, 2018
1 parent e122462 commit c071ad3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libmscore/hairpin.cpp
Expand Up @@ -237,8 +237,11 @@ void HairpinSegment::layout()
qreal w = score()->styleP(Sid::hairpinLineWidth);
setbbox(r.adjusted(-w*.5, -w*.5, w, w));
}
if (!parent())
if (!parent()) {
rpos() = QPointF();
roffset() = QPointF();
return;
}

if (isStyled(Pid::OFFSET))
roffset() = hairpin()->propertyDefault(Pid::OFFSET).toPointF();
Expand Down

0 comments on commit c071ad3

Please sign in to comment.