Skip to content

Commit

Permalink
fix #279310: system text autoplace fails if top staff not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Dec 6, 2018
1 parent 55e0dea commit 79b7acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ void Element::autoplaceSegmentElement(qreal minDistance)
if (visible() && autoplace() && parent()) {
Segment* s = toSegment(parent());
Measure* m = s->measure();
int si = staffIdx();
int si = systemFlag() ? m->system()->firstVisibleStaff() : staffIdx();

SysStaff* ss = m->system()->staff(si);
QRectF r = bbox().translated(m->pos() + s->pos() + pos());
Expand Down

0 comments on commit 79b7acb

Please sign in to comment.