From: kiirala Date: Wed, 15 Aug 2007 15:09:25 +0000 (+0000) Subject: Fixed blur not rotating with the object in some cases (bug 1762289) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=55a7b883cd44d9d59767e06d857d9d364f9e996c;p=inkscape.git Fixed blur not rotating with the object in some cases (bug 1762289) --- diff --git a/src/display/nr-filter.cpp b/src/display/nr-filter.cpp index 34a33e2b8..b97784ec4 100644 --- a/src/display/nr-filter.cpp +++ b/src/display/nr-filter.cpp @@ -138,10 +138,10 @@ int Filter::render(NRArenaItem const *item, NRPixBlock *pb) // If filter effects region is not paraller to viewport, // we must first undo the rotation / shear. // It will be redone after filtering. - // If there is only rotation and uniform scaling (zoom), let's skip this, - // as it will not make a difference with gaussian blur. - if ((fabs(trans[1]) > 1e-6 || fabs(trans[2]) > 1e-6) && - !(fabs(trans[0] - trans[3]) < 1e-6 && fabs(trans[1] + trans[2]) < 1e-6)) { + // If there is only scaling, let's skip this, as it will not make + // a difference with gaussian blur. + // TODO: This should be done in FilterSlot and for all input images + if (fabs(trans[1]) > 1e-6 || fabs(trans[2]) > 1e-6) { notparaller = true; // TODO: if filter resolution is specified, scaling should be set diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index e9c2af19d..9d2abcddf 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -112,6 +112,8 @@ sp_filter_init(SPFilter *filter) filter->_image_name = map(); + filter->filterRes = NumberOptNumber(); + new (&filter->modified_connection) sigc::connection(); }