diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-12 21:26:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-13 13:49:35 +0100 |
commit | fc6a8994055db18b9ba2dce1e26d2b1ea9ea41f3 (patch) | |
tree | 4b3596307a06d86415e9a4f0fc66709627b734c5 /starmath/source | |
parent | e993d98e29faee0947588a326fe9454c8f987ef7 (diff) |
ofz#6843 Integer-overflow
Change-Id: I3984253ac3e5eaf0be7b10c8ba95d50e6bd9ce5d
Reviewed-on: https://gerrit.libreoffice.org/51175
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index ed207aaa0f0b..59b42570a2d0 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -3067,12 +3067,12 @@ void SmXMLImport::SetViewSettings(const Sequence<PropertyValue>& aViewProps) if (pValue->Name == "ViewAreaTop" ) { pValue->Value >>= nTmp; - aRect.setY( nTmp ); + aRect.SaturatingSetY(nTmp); } else if (pValue->Name == "ViewAreaLeft" ) { pValue->Value >>= nTmp; - aRect.setX( nTmp ); + aRect.SaturatingSetX(nTmp); } else if (pValue->Name == "ViewAreaWidth" ) { |