musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.34k stars 2.67k forks source link

Fix - Crash due to large custom Time Signature #25564

Closed Abhay-Varnekar closed 2 days ago

Abhay-Varnekar commented 3 days ago

Resolves: #12970

Summary of Changes:

Jojo-Schmitz commented 3 days ago

use git pull --rebase upstream master; git push -f and squash your 2 commits into one, after having fixes the trailing spaces

Jojo-Schmitz commented 3 days ago

That editstyle.ui change should not be in this PR

Abhay-Varnekar commented 3 days ago

That editstyle.ui change should not be in this PR

Yess removed it

Jojo-Schmitz commented 3 days ago

Strange, I now don't see where that codestyle check failure comes from

Abhay-Varnekar commented 3 days ago

Strange, I now don't see where that codestyle check failure comes from

Yess I too am not able to figure out the issue here as I used the code from the main repo and made mine changes keeping in mind the trailing spaces

cbjeukendrup commented 3 days ago

This is the problem:

diff --git a/src/palette/view/widgets/timedialog.cpp b/src/palette/view/widgets/timedialog.cpp
index 342d3b7..1458987 100644
--- a/src/palette/view/widgets/timedialog.cpp
+++ b/src/palette/view/widgets/timedialog.cpp
@@ -154,7 +154,7 @@ void TimeDialog::zChanged()
     int denominator = this->denominator();

     Fraction sig(numerator, denominator);
-    
+
     // Update beam groups view
     groups->setSig(sig, Groups::endings(sig), zText->text(), nText->text());
 }

On blank lines, no indentation should be applied.

Jojo-Schmitz commented 3 days ago

I don't see that one on GitHub though

Abhay-Varnekar commented 3 days ago

This is the problem:

diff --git a/src/palette/view/widgets/timedialog.cpp b/src/palette/view/widgets/timedialog.cpp
index 342d3b7..1458987 100644
--- a/src/palette/view/widgets/timedialog.cpp
+++ b/src/palette/view/widgets/timedialog.cpp
@@ -154,7 +154,7 @@ void TimeDialog::zChanged()
     int denominator = this->denominator();

     Fraction sig(numerator, denominator);
-    
+
     // Update beam groups view
     groups->setSig(sig, Groups::endings(sig), zText->text(), nText->text());
 }

On blank lines, no indentation should be applied.

Thanks a lot for pointing it out. I will make sure to note this and not make such mistakes hereafter.

zacjansheski commented 2 days ago

Tested on MacOS 14, Windows 11, Ubuntu 22.04.3. Approved https://github.com/musescore/MuseScore/issues/12970 FIXED