adding a section break to a score with parts and deleting it again causes crash

• Feb 14, 2015 - 13:18
Type
Functional
Severity
S2 - Critical
Status
closed
Project

adding a section break to a score with parts and deleting it again causes crash, debug output:
Fatal: ASSERT: "el->score() == score()" in file ...\MuseScore\libmscore\measure.cpp, line 882 (:0, )

selfbuilt 69d5437, Windows 7 (Enterprise, 64bit)


Comments

Works fine if break is added before parts are generated (then deleted afterwards). I think when the break is added to the parts, it is being added with the wrong parent.

I often find the Q_ASSERT statements scattered throughout the code more annoying than helpful, but I have to admit, this one pinpointed the problem instantly.