summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drawinglayer/source/processor2d/vclprocessor2d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 0f92e6337d73..9e6c5a6fcae5 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -840,7 +840,7 @@ namespace drawinglayer
// Prepare target output size
Size aDestSize(aDestRectView.GetSize());
- if(aDestSize.getWidth() && aDestSize.getHeight())
+ if(aDestSize.getWidth() > 0 && aDestSize.getHeight() > 0)
{
// Get preferred Metafile output size. When it's very equal to the output size, it's probably
// a rounding error somewhere, so correct it to get a 1:1 output without single pixel scalings