diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-10 14:29:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-10 14:29:46 +0000 |
commit | 6624484a608ed43fdeea1596f254915add671e08 (patch) | |
tree | 03a41db594489d9a13a92030680bc76275a87698 /drawinglayer/source | |
parent | 5225cd46919a028add3772564fd0d63e99078820 (diff) |
Resolves: fdo#87189 don't draw negative canvas sizes
Change-Id: Ia52bc54084883817ffdd8ade06c3079865d52f70
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 2 |
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 |