Skip to content

Commit

Permalink
Fix clef order after headers
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Feb 28, 2025
1 parent 435802e commit 7481bcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/engraving/dom/segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2847,13 +2847,17 @@ bool Segment::goesBefore(const Segment* nextSegment) const
}

if (thisIsClef && (nextIsKeySig || nextIsTimeSig)
&& rtick() == Fraction(0, 1) && nextSegment->rtick() == Fraction(0, 1) && !nextIsHeader) {
&& rtick()
== Fraction(0,
1) && nextSegment->rtick() == Fraction(0, 1) && !nextIsHeader && thisMeasureIsStartRepeat && prevMeasureIsEndRepeat) {
// Between repeats
return true;
}

if ((thisIsKeySig || thisIsTimeSig) && nextIsClef
&& rtick() == Fraction(0, 1) && nextSegment->rtick() == Fraction(0, 1) && !thisIsHeader) {
&& rtick()
== Fraction(0,
1) && nextSegment->rtick() == Fraction(0, 1) && !thisIsHeader && thisMeasureIsStartRepeat && prevMeasureIsEndRepeat) {
// Between repeats
return false;
}
Expand Down
Binary file added vtest/scores/clefPosition.mscz
Binary file not shown.

0 comments on commit 7481bcf

Please sign in to comment.