From 9c6e6d3fc5af88341124ee819be81a720d8b5de1 Mon Sep 17 00:00:00 2001 From: lasconic Date: Tue, 24 Sep 2013 21:34:15 +0200 Subject: [PATCH] fix #22858: slide layout in guitar tab --- libmscore/glissando.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libmscore/glissando.cpp b/libmscore/glissando.cpp index 4940ea414d34..f5bbe82248e9 100644 --- a/libmscore/glissando.cpp +++ b/libmscore/glissando.cpp @@ -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