Skip to content

Commit

Permalink
fix #307991: crash when deleting all measures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jul 18, 2020
1 parent 0c1e286 commit 6611779
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 6611779

Please sign in to comment.