Skip to content

Commit

Permalink
fix #284345, fix #281127: interpretation of grand staff distance
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Feb 19, 2019
1 parent ca4ddb1 commit 21ae2ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libmscore/system.cpp
Expand Up @@ -442,6 +442,17 @@ void System::layout2()
Staff* staff2 = score()->staff(si2);
qreal dist = h;

#if 1
if (staff->part() == staff2->part()) {
Measure* m = firstMeasure();
qreal mag = m ? staff->mag(m->tick()) : 1.0;
dist += akkoladeDistance * mag;
}
else {
dist += staffDistance;
}
#else
// TODO: provide style setting or brace property to allow braces to also define a grand staff
switch (staff2->innerBracket()) {
case BracketType::BRACE:
dist += akkoladeDistance;
Expand All @@ -453,6 +464,7 @@ void System::layout2()
dist += staffDistance;
break;
}
#endif
dist += staff2->userDist();
#if 0
for (MeasureBase* mb : ml) {
Expand Down

0 comments on commit 21ae2ee

Please sign in to comment.