From: gustav_b Date: Wed, 24 Oct 2007 01:54:59 +0000 (+0000) Subject: Use computed fill-rule value when setting fill in cairo pdf/ps export. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e78bc101a4268ce2703f12a9932aded53894c1aa;p=inkscape.git Use computed fill-rule value when setting fill in cairo pdf/ps export. --- diff --git a/src/extension/internal/pdf-cairo.cpp b/src/extension/internal/pdf-cairo.cpp index e1a168c27..4baab1740 100644 --- a/src/extension/internal/pdf-cairo.cpp +++ b/src/extension/internal/pdf-cairo.cpp @@ -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); diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index fcda1a874..35464b374 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -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 {