Subject: [PATCH] Fix #15244 : Correct underline & StrikeLine alignment in GlyphBox::render --- Index: scribus/text/boxes.cpp IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/scribus/text/boxes.cpp b/scribus/text/boxes.cpp --- a/scribus/text/boxes.cpp (revision 27539) +++ b/scribus/text/boxes.cpp (date 1778003272466) @@ -662,9 +662,9 @@ yoffs = gl.yoffset; } if (charStyle.effects() & ScStyle_Subscript) - p->drawLine(QPointF(xoffs, yoffs - st), QPointF(xoffs + m_glyphRun.width(), yoffs - st)); + p->drawLine(QPointF(xoffs, yoffs - st), QPointF(m_glyphRun.width(), yoffs - st)); else - p->drawLine(QPointF(xoffs, -st), QPointF(xoffs + m_glyphRun.width(), -st)); + p->drawLine(QPointF(xoffs, -st), QPointF(m_glyphRun.width(), -st)); p->setStrokeWidth(sw); p->setStrokeColor(sc); @@ -747,7 +747,7 @@ xoffs = gl.xoffset; yoffs = gl.yoffset; } - p->drawLine(QPointF(xoffs, yoffs - st), QPointF(xoffs + m_glyphRun.width(), yoffs - st)); + p->drawLine(QPointF(xoffs, yoffs - st), QPointF(m_glyphRun.width(), yoffs - st)); p->setStrokeWidth(sw); p->setStrokeColor(sc);