From 27742dae385d6dc2c2d48adfd9b65391576271a4 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 3 Mar 2016 14:06:37 +0400 Subject: [PATCH] Fix glyph outline drawing The painter state should be restored before drawing the fill. Fixes #19. --- scribus/pageitem_textframe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scribus/pageitem_textframe.cpp b/scribus/pageitem_textframe.cpp index 3b81814870..720fe9374f 100644 --- a/scribus/pageitem_textframe.cpp +++ b/scribus/pageitem_textframe.cpp @@ -3328,11 +3328,11 @@ class TextFramePainter: public TextLayoutPainter m_painter->strokePath(); } - if (fill) - drawGlyph(gl, selected); - m_painter->setFillRule(fr); m_painter->restore(); + + if (fill) + drawGlyph(gl, selected); } void drawLine(QPointF start, QPointF end)