From 761462bc771e916bc71dd9b116c9227b495fe7a9 Mon Sep 17 00:00:00 2001 From: Hugo Rodrigues Date: Sun, 20 Aug 2006 12:13:40 +0000 Subject: Object groups can be blurred. Blur slider updates when selection changes. Comments added/fixed. (bzr r1622) --- src/display/nr-arena-shape.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (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 f9c203187..2f278b3de 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -1089,9 +1089,8 @@ 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 (style->filter.set && style->filter.filter) + //if shape has a filter + if (style->filter.set && style->filter.filter) { shape->filter = new NR::Filter(); shape->filter->set_x(style->filter.filter->x); @@ -1120,6 +1119,11 @@ nr_arena_shape_set_style(NRArenaShape *shape, SPStyle *style) } } } + else + { + //no filter set for this shape + shape->filter = NULL; + } nr_arena_item_request_update(shape, NR_ARENA_ITEM_STATE_ALL, FALSE); } -- cgit v1.2.3