From f00df7a46fb1eb6ed9e0623d4f3c65b4a584fa39 Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Sat, 14 Dec 2024 11:12:07 +0100 Subject: [PATCH] Fix crash when deleting voice 2 rest in note input mode --- libmscore/edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmscore/edit.cpp b/libmscore/edit.cpp index dd99c93cfa925..015753aecb216 100644 --- a/libmscore/edit.cpp +++ b/libmscore/edit.cpp @@ -2572,7 +2572,7 @@ void Score::cmdDeleteSelection() deselectAll(); // make new selection if appropriate if (noteEntryMode()) { - if (!crsSelectedAfterDeletion.empty()) + if (crsSelectedAfterDeletion[0]) _is.setSegment(crsSelectedAfterDeletion[0]->segment()); else crsSelectedAfterDeletion.push_back(_is.cr());