Skip to content

Commit 812723b

Browse files
worldwidewearyJojo-Schmitz
authored andcommitted
Fix corruption
1 parent b48a8fa commit 812723b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/engraving/dom/cmd.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ void Score::cmdIncDecDuration(int nSteps, bool stepDotted)
33193319
staff2track(m_selection.staffEnd()), selectionFilter(), m_selection.rangeContainsMultiNoteChords());
33203320
pasteStaff(e, m_selection.startSegment(), m_selection.staffStart(), scale);
33213321
} else if (m_selection.isList()) {
3322-
std::set<ChordRest*> crs = getSelectedChordRests();
3322+
const std::set<ChordRest*> crs = getSelectedChordRests();
33233323
for (ChordRest* cr : crs) {
33243324
TDuration newDuration(stepDotted
33253325
? cr->durationType().fraction() * Fraction(3, 3 + nSteps)
@@ -3337,7 +3337,9 @@ void Score::cmdIncDecDuration(int nSteps, bool stepDotted)
33373337
if (cr->isChord()) {
33383338
e = toChord(cr)->upNote();
33393339
}
3340-
select(e, SelectType::ADD);
3340+
if (canReselectItem(e)) {
3341+
select(e, SelectType::ADD);
3342+
}
33413343
}
33423344
}
33433345
}

0 commit comments

Comments
 (0)