New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
split / join measures in parts #19271
split / join measures in parts #19271
Conversation
dabd814
to
3d058e4
Compare
3d058e4
to
5689d1d
Compare
a71fbf0
to
c8c6a1b
Compare
@cbjeukendrup I have also fix to #19323 Thank You |
src/engraving/dom/joinMeasure.cpp
Outdated
|
||
deselectAll(); | ||
mScore->startCmd(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we should not call startCmd
and endCmd
inside this method. They are already called outside it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cbjeukendrup
Removing them caused utest spanners fails.
So I added them into test file.
Not sure, if it is OK (in case, if user would call joinMeasure or splitMeasure from command line)
@sammik Perhaps there is an even safer way to do this: make |
A separate PR would be great! |
c8c6a1b
to
0ac46d4
Compare
@cbjeukendrup yes, I agree, I was thinking of it too |
And it looks like another rebase is needed since #19245 was merged |
0ac46d4
to
14f147c
Compare
Resolves: #17115
Resolves: #19283
split and join measures now always acts in masterScore (under the hood)
In joinMeasure it was deleteMeasures used before, to handle parts.
But it has side effect, that it also creates "lastDeletedKeySignature" in next measure.
This was fixed by InsertMeasureOption "moveSignaturesClef" (by omitting moveSignaturesClef = false).
But it has side effect, that if "next measure" already contains key signature, it is moved too (#19283).
Now undoRemoveMeasures function is used instead of deleteMeasures.
(Thats why utests failed - in undoRemoveMeasure, there is no check of missing initial key signature, so joining first two measures in score with no initial key sig doesn't create new one.)
Also correct repeat barlines are preserved now.