Skip to content

Commit

Permalink
Merge pull request #6346 from Jojo-Schmitz/crash-delete-all
Browse files Browse the repository at this point in the history
fix #307991: crash when deleting all measures
  • Loading branch information
anatoly-os authored Aug 25, 2020
2 parents dfc6407 + 6611779 commit a2dc24d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5455,6 +5455,8 @@ void ScoreView::moveViewportToLastEdit()
}
if (!mb)
mb = sc->tick2measureMM(st.startTick());
if (!mb)
return;

const Element* viewportElement = (editElement && editElement->bbox().isValid() && !mb->isMeasure()) ? editElement : mb;

Expand Down

0 comments on commit a2dc24d

Please sign in to comment.