Skip to content

Commit

Permalink
Fix glyph outline drawing
Browse files Browse the repository at this point in the history
The painter state should be restored before drawing the fill. Fixes scribusproject#19.
  • Loading branch information
khaledhosny committed Mar 23, 2016
1 parent f3519c4 commit 27742da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scribus/pageitem_textframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27742da

Please sign in to comment.