From d331e75a28fc513289d24bc0dc10ef7be26da888 Mon Sep 17 00:00:00 2001 From: Niko Kiirala Date: Wed, 21 Jun 2006 16:04:22 +0000 Subject: svg-filters branch merged back to head (bzr r1252) --- src/display/nr-arena-shape.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/display/nr-arena-shape.cpp') diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index d26d1bc27..abe343a1d 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -16,6 +16,7 @@ #include #include +#include "display/nr-filter.h" #include #include #include @@ -26,6 +27,8 @@ #include #include #include +/* prefs-utils used for deciding, whether to run filtering test or not */ +#include "prefs-utils.h" //int showRuns=0; void nr_pixblock_render_shape_mask_or(NRPixBlock &m,Shape* theS); @@ -1082,6 +1085,12 @@ nr_arena_shape_set_style(NRArenaShape *shape, SPStyle *style) } shape->setMitreLimit(style->stroke_miterlimit.value); + /* TODO: after SPStyle handles filters, get the correct filter + * from there. */ + //if (prefs_get_double_attribute("options.filtertest", "value", 0) != 0) + if (style->filter.set && style->filter.filter) + shape->filter = new NR::Filter(); + nr_arena_item_request_update(shape, NR_ARENA_ITEM_STATE_ALL, FALSE); } -- cgit v1.2.3