Skip to content

Commit

Permalink
correct globalSig
Browse files Browse the repository at this point in the history
Backport of musescore#23351
  • Loading branch information
sammik authored and Jojo-Schmitz committed Sep 4, 2024
1 parent 60d1d05 commit 4292d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/timesig.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class TimeSig final : public Element {
const Groups& groups() const { return _groups; }
void setGroups(const Groups& e) { _groups = e; }

Fraction globalSig() const { return (_sig * _stretch).reduced(); }
Fraction globalSig() const { return (_sig / _stretch).reduced(); }
void setGlobalSig(const Fraction& f) { _stretch = (_sig / f).reduced(); }

bool isLocal() const { return _stretch != Fraction(1,1); }
Expand Down

0 comments on commit 4292d3b

Please sign in to comment.