[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - drawinglayer/source

Caolán McNamara caolanm at redhat.com
Wed Dec 10 06:31:06 PST 2014


 drawinglayer/source/processor2d/vclprocessor2d.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 63a2168a6ea783d2c3824cdde8983dbfad147417
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Dec 10 14:29:20 2014 +0000

    Resolves: fdo#87189 don't draw negative canvas sizes
    
    Change-Id: Ia52bc54084883817ffdd8ade06c3079865d52f70
    (cherry picked from commit 6624484a608ed43fdeea1596f254915add671e08)

diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 0f92e63..9e6c5a6 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


More information about the Libreoffice-commits mailing list