File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -720,8 +720,12 @@ bool BeamTremoloLayout::calculateAnchorsCross()
720
720
minY = std::max (minY, chordBeamAnchorY (toChord (c)));
721
721
}
722
722
}
723
+
723
724
m_startAnchor.ry () = (maxY + minY) / 2 ;
724
725
m_endAnchor.ry () = (maxY + minY) / 2 ;
726
+ m_startAnchor.setX (chordBeamAnchorX (startCr, ChordBeamAnchorType::Start));
727
+ m_endAnchor.setX (chordBeamAnchorX (endCr, ChordBeamAnchorType::End));
728
+
725
729
m_slope = 0 ;
726
730
727
731
if (!noSlope ()) {
@@ -825,8 +829,6 @@ bool BeamTremoloLayout::calculateAnchorsCross()
825
829
// nothing needs to be done, the beam is already horizontal and placed nicely
826
830
}
827
831
}
828
- m_startAnchor.setX (chordBeamAnchorX (startCr, ChordBeamAnchorType::Start));
829
- m_endAnchor.setX (chordBeamAnchorX (endCr, ChordBeamAnchorType::End));
830
832
m_slope = (m_endAnchor.y () - m_startAnchor.y ()) / (m_endAnchor.x () - m_startAnchor.x ());
831
833
}
832
834
return true ;
You can’t perform that action at this time.
0 commit comments