summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-09-21 10:20:45 +0100
committerMichael Stahl <mstahl@redhat.com>2016-09-21 12:55:35 +0000
commit56a3b56689a458a8ff3f310940af07dac347a0c5 (patch)
tree4d8bdfecfe23c6e719768d84054841e6116d938f
parent2ff4c68b63c4842ec85a21287317096b6ca8e66e (diff)
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/29133 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--cui/source/tabpages/transfrm.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx
index feca458c8c24..923d2052ad99 100644
--- a/cui/source/tabpages/transfrm.cxx
+++ b/cui/source/tabpages/transfrm.cxx
@@ -647,14 +647,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);