Code

Use computed fill-rule value when setting fill in cairo pdf/ps export.
authorgustav_b <gustav_b@users.sourceforge.net>
Wed, 24 Oct 2007 01:54:59 +0000 (01:54 +0000)
committergustav_b <gustav_b@users.sourceforge.net>
Wed, 24 Oct 2007 01:54:59 +0000 (01:54 +0000)
src/extension/internal/pdf-cairo.cpp
src/extension/internal/ps.cpp

index e1a168c27065fbd900753adf54b08dfe3a6245bd..4baab1740c0f7f253d036af9a610d256082943c0 100644 (file)
@@ -574,7 +574,7 @@ PrintCairoPDF::fill(Inkscape::Extension::Print *mod, NRBPath const *bpath, NRMat
 
         print_fill_style(cr, style, pbox);
         print_bpath(cr, bpath->path);
-        if (style->fill_rule.value == SP_WIND_RULE_EVENODD) {
+        if (style->fill_rule.computed == SP_WIND_RULE_EVENODD) {
             cairo_set_fill_rule(cr, CAIRO_FILL_RULE_EVEN_ODD);
         } else {
             cairo_set_fill_rule(cr, CAIRO_FILL_RULE_WINDING);
index fcda1a8740ba713d35d0d08efd4a0779b5270d67..35464b374c67e78c145e8f8cc57a30cc1916dfe4 100644 (file)
@@ -830,7 +830,7 @@ PrintPS::fill(Inkscape::Extension::Print *mod, NRBPath const *bpath, NRMatrix co
 
         print_bpath(os, bpath->path);
 
-        if (style->fill_rule.value == SP_WIND_RULE_EVENODD) {
+        if (style->fill_rule.computed == SP_WIND_RULE_EVENODD) {
             if (style->fill.isColor()) {
                 os << "eofill\n";
             } else {