Skip to content

Commit edbbcae

Browse files
Jojo-SchmitzAsh-86
andcommitted
Proposed fix
Update cmd.cpp Co-Authored-By: Ashraf El Droubi <[email protected]>
1 parent ed6f6b8 commit edbbcae

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/engraving/dom/cmd.cpp

Lines changed: 4 additions & 9 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) {
@@ -3324,7 +3320,6 @@ void Score::cmdIncDecDuration(int nSteps, bool stepDotted)
33243320
}
33253321
return;
33263322
}
3327-
33283323
EngravingItem* el = selection().element();
33293324
if (el == 0) {
33303325
return;

0 commit comments

Comments
 (0)