summaryrefslogtreecommitdiffstats
path: root/src/display/nr-arena-shape.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-06-27 05:41:53 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-06-27 05:41:53 +0000
commit6f008746350aab3d895a7905e1dd036a9b615a94 (patch)
tree736226313250bc53a193b4f4cf516f6909efcc8e /src/display/nr-arena-shape.cpp
parentfix issue introduced in r14229 (diff)
downloadinkscape-6f008746350aab3d895a7905e1dd036a9b615a94.tar.gz
inkscape-6f008746350aab3d895a7905e1dd036a9b615a94.zip
switch SPStyle to using SPFilterReference for filters; sp_style_new now requires an SPDocument; SPURIReference and SPFilterReference have an alternative constructor taking an owner_document instead of owner object
(bzr r3116)
Diffstat (limited to 'src/display/nr-arena-shape.cpp')
-rw-r--r--src/display/nr-arena-shape.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp
index c09bdb9dd..0e7dd2798 100644
--- a/src/display/nr-arena-shape.cpp
+++ b/src/display/nr-arena-shape.cpp
@@ -31,6 +31,7 @@
#include "inkscape-cairo.h"
#include "sp-filter.h"
+#include "sp-filter-reference.h"
#include "display/nr-filter.h"
#include <cairo.h>
@@ -1359,12 +1360,12 @@ nr_arena_shape_set_style(NRArenaShape *shape, SPStyle *style)
shape->setMitreLimit(style->stroke_miterlimit.value);
//if shape has a filter
- if (style->filter.set && style->filter.filter) {
+ if (style->filter.set && style->filter.href->getObject()) {
if (!shape->filter) {
- int primitives = sp_filter_primitive_count(style->filter.filter);
+ int primitives = sp_filter_primitive_count(style->filter.href->getObject());
shape->filter = new NR::Filter(primitives);
}
- sp_filter_build_renderer(style->filter.filter, shape->filter);
+ sp_filter_build_renderer(style->filter.href->getObject(), shape->filter);
} else {
//no filter set for this shape
delete shape->filter;