-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix issue with "Decrease duration" and "Increase duration" in the History panel #26738
base: master
Are you sure you want to change the base?
Conversation
Alternative would be to revese the logic (to something logical ;-)) in 4 other places, let me know if that is wanted instead |
Perhaps we reverse the logic for Master, and go with the super simple safe version for 4.5? |
I'm fine with that, have a corresponding commit ready, for master and for 4.5.0, but will commit it only to the former for now. Maybe you change your mind on 4.5.0, seeing how simple that is too. |
fd2f3af
to
092db9c
Compare
@@ -683,7 +683,7 @@ void NotationBraille::setKeys(const QString& sequence) | |||
case BieSequencePatternType::Dot: { | |||
LOGD() << "dot " << brailleInput()->dots(); | |||
if (brailleInput()->dots() > 0) { | |||
interaction()->increaseDecreaseDuration(-brailleInput()->dots(), true); | |||
interaction()->increaseDecreaseDuration(brailleInput()->dots(), true); |
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.
This raises the question whether/where for Braille there is a "decrease duration"?
Oops, it is not as simple as I thought, |
0bd890b
to
5d21ccc
Compare
I hope to not having screwed up the logic... |
Apparently I did screw up... utests and vtests failing :-( |
Back to the simple fix? |
Strange, your changes actually look fine to me. Also it's remarkable that the VTests are failing. I can hardly believe that the changes from this PR are causing this... |
I also did a rebase... |
5d21ccc
to
978bb99
Compare
Trying another rebase |
same issue :-( |
I found the problem: turns out Also, the reason why the logic was the way it was became more clear to me: it corresponded to the order of the cases of the DurationType enum. Of course, that could be turned upside down as well, but I'm not sure if we should go that far (who knows what consequences that will have...) |
I found only one such place (and there twice), which I missed earlier. Added. Let's see... |
c4b7f10
to
76fa008
Compare
Better (vtests pass, no utest crashes), but not there yet (2 MusicXML tests fail, apparently wanting additional beams at some tuplets, and 4 engraving tests, also around tuplets, changing their base note, making them longer by 2 steps, e.g. 8th to half, 16th to quarter). |
As a) time seems running out on 4.5.0 and b) this change here is way more complex, I think it'd be good to merge the simple one, #26739, to 4.5.0 now. |
Resolves: #26733
(Needed for 4.5.0 too)