Skip to content

Commit

Permalink
fix #151256, part 1: fix lyrics intersection inside measure
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 committed Jan 10, 2019
1 parent f311468 commit 54eab63
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4000,13 +4000,14 @@ void Measure::computeMinWidth(Segment* s, qreal x, bool isSystemHeader)
for (Segment* ps = s; ps != fs;) {
qreal ww;
ps = ps->prevEnabled();

if (ps->isChordRestType())
++n;
ww = ps->minHorizontalCollidingDistance(ns) - (s->x() - ps->x());

if (ps == fs)
ww = ns->minLeft(ls) - s->x();
else {
if (ps->isChordRestType())
++n;
ww = ps->minHorizontalCollidingDistance(ns) - (s->x() - ps->x());
}
ww = std::max(ww, ns->minLeft(ls) - s->x());

if (ww > w) {
// overlap !
// distribute extra space between segments ps - ss;
Expand Down

0 comments on commit 54eab63

Please sign in to comment.