summaryrefslogtreecommitdiffstats
path: root/src/display/nr-arena-shape.cpp
diff options
context:
space:
mode:
authorNiko Kiirala <niko@kiirala.com>2006-06-21 16:04:22 +0000
committerkiirala <kiirala@users.sourceforge.net>2006-06-21 16:04:22 +0000
commitd331e75a28fc513289d24bc0dc10ef7be26da888 (patch)
tree2b9cae58f7256a2e12625068a54299911859e63e /src/display/nr-arena-shape.cpp
parentit seems we don't have "required" anymore (diff)
downloadinkscape-d331e75a28fc513289d24bc0dc10ef7be26da888.tar.gz
inkscape-d331e75a28fc513289d24bc0dc10ef7be26da888.zip
svg-filters branch merged back to head
(bzr r1252)
Diffstat (limited to 'src/display/nr-arena-shape.cpp')
-rw-r--r--src/display/nr-arena-shape.cpp9
1 files changed, 9 insertions, 0 deletions
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 <display/nr-arena.h>
#include <display/nr-arena-shape.h>
+#include "display/nr-filter.h"
#include <libnr/n-art-bpath.h>
#include <libnr/nr-path.h>
#include <libnr/nr-pixops.h>
@@ -26,6 +27,8 @@
#include <livarot/float-line.h>
#include <livarot/int-line.h>
#include <style.h>
+/* 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);
}