From: jaspervdg Date: Wed, 13 May 2009 16:08:45 +0000 (+0000) Subject: (Very) small fix for FilterConvolveMatrix::area_enlarge X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1cea94159d3f22bfc9b3289132fea3ce50d803bf;p=inkscape.git (Very) small fix for FilterConvolveMatrix::area_enlarge --- 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() {