[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - cui/source

Caolán McNamara caolanm at redhat.com
Wed Sep 21 12:56:29 UTC 2016


 cui/source/tabpages/transfrm.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 43a9d36ba9867feae8b52ffbb154c6bc2ac61163
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Sep 21 10:20:45 2016 +0100

    Resolves: tdf#100795 SAL_MIN_INT32 32bit overflows on finding min limit
    
    for control points, so halve it to the practical limit
    
    Change-Id: I1285631bebebf86e257a2fdd804c0c81dcefac96
    (cherry picked from commit 25e4708c1f49986f3f082beb2e940aa2d7fb4d81)
    Reviewed-on: https://gerrit.libreoffice.org/29132
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx
index cc7c3bf..34cbadd 100644
--- a/cui/source/tabpages/transfrm.cxx
+++ b/cui/source/tabpages/transfrm.cxx
@@ -639,14 +639,14 @@ void SvxSlantTabPage::Reset(const SfxItemSet* rAttrs)
                 m_aControlGroups[i]->Enable();
                 css::awt::Point aPosition;
 
-                aPosition.X = SAL_MAX_INT32;
-                aPosition.Y = SAL_MAX_INT32;
+                aPosition.X = SAL_MAX_INT32/2;
+                aPosition.Y = SAL_MAX_INT32/2;
                 aShape.SetHandleControllerPosition(i, aPosition);
                 Point aMaxPosition;
                 aShape.GetHandlePosition(i, aMaxPosition);
 
-                aPosition.X = SAL_MIN_INT32;
-                aPosition.Y = SAL_MIN_INT32;
+                aPosition.X = SAL_MIN_INT32/2;
+                aPosition.Y = SAL_MIN_INT32/2;
                 aShape.SetHandleControllerPosition(i, aPosition);
                 Point aMinPosition;
                 aShape.GetHandlePosition(i, aMinPosition);


More information about the Libreoffice-commits mailing list