From f35f72ab5b7323330af29b795db46d86c3b74858 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 55ac0cb295..f18e56f4b4 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)