summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 455ec16)
raw | patch | inline | side by side (parent: 455ec16)
author | scislac <scislac@users.sourceforge.net> | |
Mon, 19 Oct 2009 16:26:43 +0000 (16:26 +0000) | ||
committer | scislac <scislac@users.sourceforge.net> | |
Mon, 19 Oct 2009 16:26:43 +0000 (16:26 +0000) |
src/display/nr-filter.cpp | patch | blob | history |
index 3ca2b0dbaedd0ba2a13930359a9f341978784c7c..d0e0ec11e4e5d6c8c439e3f2af27d28028424075 100644 (file)
// 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);