From 09c08f165a15ba3df4613e2bef4386b7d82e9382 Mon Sep 17 00:00:00 2001 From: Niko Kiirala Date: Wed, 15 Aug 2007 15:09:25 +0000 Subject: Fixed blur not rotating with the object in some cases (bug 1762289) (bzr r3474) --- src/display/nr-filter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/display') 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 -- cgit v1.2.3