From: buliabyak Date: Sat, 3 Mar 2007 07:18:21 +0000 (+0000) Subject: the SP_IS_GAUSSIANBLUR fix is not only for shapes. fixme: this boilerplate definitely... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ef05efc2175d330cdd17e09e855b1daf1436c38;p=inkscape.git the SP_IS_GAUSSIANBLUR fix is not only for shapes. fixme: this boilerplate definitely needs to be factored out --- diff --git a/src/display/nr-arena-group.cpp b/src/display/nr-arena-group.cpp index 9c790eb97..0678eb37e 100644 --- a/src/display/nr-arena-group.cpp +++ b/src/display/nr-arena-group.cpp @@ -206,7 +206,7 @@ void nr_arena_group_set_style (NRArenaGroup *group, SPStyle *style) { SPFilterPrimitive *primitive = style->filter.filter->_primitives[i]; //if primitive is gaussianblur -// if(SP_IS_GAUSSIANBLUR(primitive)) + if(SP_IS_GAUSSIANBLUR(primitive)) { NR::FilterGaussian * gaussian = (NR::FilterGaussian *) group->filter->add_primitive(NR::NR_FILTER_GAUSSIANBLUR); SPGaussianBlur * spblur = SP_GAUSSIANBLUR(primitive); diff --git a/src/display/nr-arena-image.cpp b/src/display/nr-arena-image.cpp index 32e29ac07..1b4f3341c 100644 --- a/src/display/nr-arena-image.cpp +++ b/src/display/nr-arena-image.cpp @@ -379,7 +379,7 @@ void nr_arena_image_set_style (NRArenaImage *image, SPStyle *style) { SPFilterPrimitive *primitive = style->filter.filter->_primitives[i]; //if primitive is gaussianblur -// if(SP_IS_GAUSSIANBLUR(primitive)) + if(SP_IS_GAUSSIANBLUR(primitive)) { NR::FilterGaussian * gaussian = (NR::FilterGaussian *) image->filter->add_primitive(NR::NR_FILTER_GAUSSIANBLUR); SPGaussianBlur * spblur = SP_GAUSSIANBLUR(primitive);