fix #277145: Delete entire score in Continuous View causes crash

This commit is contained in:
Matt McClinch 2018-10-14 23:08:49 -04:00
parent 4899a7cd69
commit 665d240caf

View file

@ -3704,7 +3704,7 @@ void Score::doLayoutRange(int stick, int etick)
{
if (stick == -1 && etick == -1)
abort();
if (!last()) {
if (!last() || (lineMode() && !firstMeasure())) {
qDeleteAll(_systems);
_systems.clear();
qDeleteAll(pages());