summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-04-11 13:15:17 +0000
committertavmjong-free <tavmjong@free.fr>2016-04-11 13:15:17 +0000
commit9d028413f98d61937750f633703ad3de2eee1fad (patch)
tree6e696c4318a0bf0680b314ead24e5c0769216fe2 /src
parentcstdint is c++11, defaulting to stdint.h (diff)
downloadinkscape-9d028413f98d61937750f633703ad3de2eee1fad.tar.gz
inkscape-9d028413f98d61937750f633703ad3de2eee1fad.zip
Fix feTile rendering bug with Krzysztof's help.
Hackfest 2016. (bzr r14777)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-filter-tile.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/display/nr-filter-tile.cpp b/src/display/nr-filter-tile.cpp
index 913812828..7172f88ee 100644
--- a/src/display/nr-filter-tile.cpp
+++ b/src/display/nr-filter-tile.cpp
@@ -126,11 +126,8 @@ void FilterTile::render_cairo(FilterSlot &slot)
void FilterTile::area_enlarge(Geom::IntRect &area, Geom::Affine const &trans)
{
- // We need to enlarge enough to get tile source... we don't the area of the source tile in this
- // function so we guess. This is VERY inefficient.
- Geom::Point enlarge(200, 200);
- enlarge *= trans;
- area.expandBy( enlarge[Geom::X] < 100 ? 100: enlarge[Geom::X] );
+ // Set to infinite rectangle so we get tile source. It will be clipped later.
+ area = Geom::IntRect::infinite();
}
double FilterTile::complexity(Geom::Affine const &)