summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJasper van de Gronde <jasper.vandegronde@gmail.com>2009-05-13 16:08:45 +0000
committerjaspervdg <jaspervdg@users.sourceforge.net>2009-05-13 16:08:45 +0000
commit895e0de262c09fbc236af0021a652a2d7acfa917 (patch)
tree481d47e60f1e3ecce388fbe18e61760b58c547b9 /src
parentFix for bug #372412. As well as proper handling of borders (assuming edgeMode... (diff)
downloadinkscape-895e0de262c09fbc236af0021a652a2d7acfa917.tar.gz
inkscape-895e0de262c09fbc236af0021a652a2d7acfa917.zip
(Very) small fix for FilterConvolveMatrix::area_enlarge
(bzr r7874)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-filter-convolve-matrix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/nr-filter-convolve-matrix.cpp b/src/display/nr-filter-convolve-matrix.cpp
index 0fd46202e..e9f7e7dfe 100644
--- a/src/display/nr-filter-convolve-matrix.cpp
+++ b/src/display/nr-filter-convolve-matrix.cpp
@@ -252,8 +252,8 @@ void FilterConvolveMatrix::area_enlarge(NRRectL &area, Geom::Matrix const &/*tra
// some spurious pixels may still appear at the borders when low zooming or rotating. Needs a better fix.
area.x0 -= targetX;
area.y0 -= targetY;
- area.x1 += orderX - targetX;
- area.y1 += orderY - targetY;
+ area.x1 += orderX - targetX - 1; // This makes sure the last row/column in the original image corresponds to the last row/column in the new image that can be convolved without adjusting the boundary conditions).
+ area.y1 += orderY - targetY - 1;
}
FilterTraits FilterConvolveMatrix::get_input_traits() {