Kaydet (Commit) 25e4708c authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst aaf8eb1c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment