Skip to content

Commit 04d2ec7

Browse files
committed
enable copy paste of same time signature if groups are different
1 parent ef37eeb commit 04d2ec7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libmscore/edit.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ void Score::cmdAddTimeSig(Measure* fm, int staffIdx, TimeSig* ts, bool local)
520520
//
521521
if ((ots->timeSigType() == ts->timeSigType())
522522
&& (ots->sig().identical(ts->sig()))
523-
&& (ots->stretch() == ts->stretch())) {
523+
&& (ots->stretch() == ts->stretch())
524+
&& ots->groups() == ts->groups()) {
524525
delete ts;
525526
return;
526527
}
@@ -545,6 +546,7 @@ void Score::cmdAddTimeSig(Measure* fm, int staffIdx, TimeSig* ts, bool local)
545546
undoChangeProperty(m, P_ID::TIMESIG_NOMINAL, QVariant::fromValue(ns));
546547
if (changeActual)
547548
undoChangeProperty(m, P_ID::TIMESIG_ACTUAL, QVariant::fromValue(ns));
549+
undoChangeProperty(ots, P_ID::GROUPS, QVariant::fromValue(ts->groups()));
548550
}
549551
}
550552
int n = nstaves();

0 commit comments

Comments
 (0)