Skip to content

Commit 30ec683

Browse files
authored
Merge pull request #26268 from mike-spa/fixCrashOnDeleteAllMeasure
Fix crash on delete all measures
2 parents 5823be4 + 80a61c2 commit 30ec683

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)