summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68b9e38)
raw | patch | inline | side by side (parent: 68b9e38)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Nov 2009 17:14:07 +0000 (17:14 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Nov 2009 17:14:07 +0000 (17:14 +0000) |
src/extension/internal/cairo-render-context.cpp | patch | blob | history |
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp
index 721d3addc9795b636f4aed73120f68d3eef06f55..023a9b837a266d9d450ba0243adaf4bb218be0e1 100644 (file)
@@ -1541,17 +1541,14 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, Geom::Matrix const *font_ma
} else {
bool fill = false, stroke = false, have_path = false;
if (style->fill.isColor() || style->fill.isPaintserver()) {
- // set fill style
- _setFillStyle(style, NULL);
fill = true;
}
if (style->stroke.isColor() || style->stroke.isPaintserver()) {
- // set stroke style
- _setStrokeStyle(style, NULL);
stroke = true;
}
if (fill) {
+ _setFillStyle(style, NULL);
if (_is_texttopath) {
_showGlyphs(_cr, font, glyphtext, true);
have_path = true;
@@ -1562,6 +1559,7 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, Geom::Matrix const *font_ma
}
}
if (stroke) {
+ _setStrokeStyle(style, NULL);
if (!have_path) _showGlyphs(_cr, font, glyphtext, true);
cairo_stroke(_cr);
}