From aa3a6d911d00f7aed34fca4d908b8a0c3324f2bf Mon Sep 17 00:00:00 2001 From: Marc Sabatella Date: Fri, 20 Feb 2015 15:17:53 -0700 Subject: [PATCH] fix #48231: don't adjust brackets and barlines when adding staves --- libmscore/undo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libmscore/undo.cpp b/libmscore/undo.cpp index 82439baa8295..21c0144397f8 100644 --- a/libmscore/undo.cpp +++ b/libmscore/undo.cpp @@ -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); } //---------------------------------------------------------