Skip to content

Commit

Permalink
fix #84156: ottava drawn to measure rest with notes in other voices
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella authored and lasconic committed Feb 16, 2016
1 parent efeb899 commit db35472
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ QPointF SLine::linePos(Grip grip, System** sys) const
// others say to start the text just to left of notehead
// some say to include accidental, others don't
// our compromise - left align, but account for accidental
if (cr->durationType() == TDuration::DurationType::V_MEASURE)
if (cr->durationType() == TDuration::DurationType::V_MEASURE && !cr->measure()->hasVoices(cr->staffIdx()))
x = cr->x(); // center for measure rests
else if (cr->space().lw() > 0.0)
x = -cr->space().lw(); // account for accidentals, etc
Expand Down
Binary file modified vtest/line-2-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vtest/line-2.mscz
Binary file not shown.

0 comments on commit db35472

Please sign in to comment.