From: scislac Date: Mon, 19 Oct 2009 16:26:43 +0000 (+0000) Subject: Patch by Luca for 449709 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec7590287b6806dd4c0b2b905bf8f3ebbb3743c5;p=inkscape.git Patch by Luca for 449709 --- diff --git a/src/display/nr-filter.cpp b/src/display/nr-filter.cpp index 3ca2b0dba..d0e0ec11e 100644 --- a/src/display/nr-filter.cpp +++ b/src/display/nr-filter.cpp @@ -168,6 +168,8 @@ int Filter::render(NRArenaItem const *item, NRPixBlock *pb) // TODO: with filterRes of 0x0 should return an empty image std::pair resolution = _filter_resolution(filter_area, trans, filterquality); + if(!(resolution.first > 0 && resolution.second > 0)) + return 1; units.set_resolution(resolution.first, resolution.second); if (_x_pixels > 0) { units.set_automatic_resolution(false);