Merge pull request #168 from Soerboe/fix19306
fix #19306 : Elements of instruments added after creation not positioned...
This commit is contained in:
commit
f86bf52a0e
2 changed files with 6 additions and 1 deletions
|
@ -1234,6 +1234,7 @@ void Measure::cmdAddStaves(int sStaff, int eStaff, bool createRest)
|
|||
if (ots) {
|
||||
TimeSig* timesig = new TimeSig(*ots);
|
||||
timesig->setTrack(i * VOICES);
|
||||
timesig->setSig(ots->sig(), ots->subtype());
|
||||
score()->undoAddElement(timesig);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -360,7 +360,11 @@ void System::layout2()
|
|||
|
||||
if (_barLine) {
|
||||
_barLine->setSpan(lastStaffIdx + 1);
|
||||
_barLine->setSpanTo( (score()->staff(lastStaffIdx)->lines()-1)*2 );
|
||||
// First barline of a single line staff should be 2sp below the single line
|
||||
if (score()->staff(lastStaffIdx)->lines() == 1)
|
||||
_barLine->setSpanTo(4); // = 2*2sp.
|
||||
else
|
||||
_barLine->setSpanTo( (score()->staff(lastStaffIdx)->lines()-1)*2 );
|
||||
_barLine->layout();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue