diff options
| author | Josh Andler <scislac@gmail.com> | 2009-10-19 16:26:43 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2009-10-19 16:26:43 +0000 |
| commit | 92c8fdf13fbf882c84e330a22b226dcd0026f13b (patch) | |
| tree | 9b7fd1e4543c2a6cc717ec2a96a002d92a0e2753 /src/display | |
| parent | Patch by Adib for 429529 (diff) | |
| download | inkscape-92c8fdf13fbf882c84e330a22b226dcd0026f13b.tar.gz inkscape-92c8fdf13fbf882c84e330a22b226dcd0026f13b.zip | |
Patch by Luca for 449709
(bzr r8793)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/nr-filter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<double,double> 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); |
