Skip to content

Commit

Permalink
Merge pull request #4335 from MarcSabatella/279310-system-text
Browse files Browse the repository at this point in the history
fix #279310: system text autoplace fails if top staff not visible
  • Loading branch information
anatoly-os committed Dec 10, 2018
2 parents 57f79fa + 79b7acb commit 5074da2
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 5074da2

Please sign in to comment.