Skip to content

Commit

Permalink
fix #22858: slide layout in guitar tab
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Sep 24, 2013
1 parent 740fe88 commit 9c6e6d3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions libmscore/glissando.cpp
Expand Up @@ -108,11 +108,15 @@ void Glissando::layout()

// on TAB's, adjust lower end point from string line height to base of note height (= ca. half line spacing)
if (chord->staff()->isTabStaff()) {
qreal yOff = chord->staff()->lineDistance() * 0.5 * _spatium;
if (anchor1->pitch() > anchor2->pitch()) // descending glissando:
y2 += yOff; // move ending point to base of note
else // ascending glissando:
qreal yOff = chord->staff()->lineDistance() * 0.3 * _spatium;
if (anchor1->pitch() > anchor2->pitch()) { // descending glissando:
y2 += yOff;
y1 -= yOff;
} // move ending point to base of note
else { // ascending glissando:
y1 += yOff; // move starting point to base of note
y2 -= yOff;
}
}

// shorten line to avoid end note ledger line
Expand Down

0 comments on commit 9c6e6d3

Please sign in to comment.