Skip to content

Commit 80a61c2

Browse files
committed
Fix crash on delete all measures
1 parent 257c2ff commit 80a61c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/inspector/models/measures/measuressettingsmodel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ void MeasuresSettingsModel::updateIsMakeIntoSystemAvailable()
190190
const Selection& selection = currentNotation()->elements()->msScore()->selection();
191191
const MeasureBase* startMB = selection.startMeasureBase();
192192
const MeasureBase* endMB = selection.endMeasureBase();
193+
if (!startMB || !endMB) {
194+
return;
195+
}
193196

194197
bool available = true;
195198
if (startMB->isStartOfSystemLock() && endMB->isEndOfSystemLock() && startMB->systemLock() == endMB->systemLock()) {

0 commit comments

Comments
 (0)