Code

Purged fill type enum
authormiklosh <miklosh@users.sourceforge.net>
Thu, 3 Jan 2008 13:54:35 +0000 (13:54 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Thu, 3 Jan 2008 13:54:35 +0000 (13:54 +0000)
src/extension/internal/cairo-render-context.cpp

index b3b025cfb4655839f1ba3c842b3abccaf7596de2..c92dd04bf95c7383924a6f725f09aff0c561dd3d 100644 (file)
@@ -1431,14 +1431,14 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, NRMatrix const *font_matrix
         }
     } else {
 
-        if (style->fill.type == SP_PAINT_TYPE_COLOR || style->fill.type == SP_PAINT_TYPE_PAINTSERVER) {
+        if (style->fill.isColor() || style->fill.isPaintserver()) {
             // set fill style
             _setFillStyle(style, NULL);
 
             _showGlyphs(_cr, font, glyphtext, FALSE);
         }
 
-        if (style->stroke.type == SP_PAINT_TYPE_COLOR || style->stroke.type == SP_PAINT_TYPE_PAINTSERVER) {
+        if (style->stroke.isColor() || style->stroke.isPaintserver()) {
             // set stroke style
             _setStrokeStyle(style, NULL);