Skip to content

Commit

Permalink
Merge pull request #1797 from MarcSabatella/48231-barline-length
Browse files Browse the repository at this point in the history
fix #48231: don't adjust brackets and barlines when adding staves
  • Loading branch information
lasconic committed Feb 21, 2015
2 parents 9df93c9 + aa3a6d9 commit 41a0e13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libmscore/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,12 @@ void Score::undoInsertStaff(Staff* staff, int ridx, bool createRests)
if (m->hasMMRest())
m->mmRest()->cmdAddStaves(idx, idx+1, false);
}

adjustBracketsIns(idx, idx+1);
// when newly adding an instrument,
// this was already set when we created the staff
// we don't have any better info at this point
// and it dooesn't work to adjust bracket & barlines until all staves are added
// TODO: adjust brackets only when appropriate
//adjustBracketsIns(idx, idx+1);
}

//---------------------------------------------------------
Expand Down

0 comments on commit 41a0e13

Please sign in to comment.