Skip to content

Commit 5b2596d

Browse files
Jojo-SchmitzAsh-86
andcommitted
Proposed fix
Co-Authored-By: Ashraf El Droubi <[email protected]>
1 parent ed6f6b8 commit 5b2596d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/engraving/dom/cmd.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3304,15 +3304,11 @@ void Score::cmdIncDecDuration(int nSteps, bool stepDotted)
33043304
pasteStaff(e, selection().startSegment(), selection().staffStart(), scale);
33053305
return;
33063306
}
3307-
if (selection().isList() && selection().elements().size() > 1) {
3308-
// List - act as if pressing duration toggle (distinct from range based Half/Double
3309-
TDuration newDuration(stepDotted
3310-
? m_is.duration().shiftRetainDots(nSteps, stepDotted)
3311-
: m_is.duration().shift(nSteps));
3312-
m_is.duration().shiftRetainDots(nSteps, stepDotted);
3313-
m_is.setDuration(newDuration);
3307+
if (selection().isList()) {
33143308
std::set crs = getSelectedChordRests();
3315-
for (auto cr : getSelectedChordRests()) {
3309+
for (ChordRest* cr : getSelectedChordRests()) {
3310+
TDuration newDuration(stepDotted ? cr->durationType().fraction() * Fraction(3, (3 + nSteps))
3311+
: cr->durationType().fraction()* Fraction(3 - nSteps, 3 + nSteps));
33163312
changeCRlen(cr, newDuration);
33173313
}
33183314
for (auto cr : crs) {

0 commit comments

Comments
 (0)