diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-22 12:25:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-23 17:59:08 +0200 |
commit | 238951d0c539d1e294a1a12f2cf7aa806af8e116 (patch) | |
tree | f9b663cf353788429bb77feefbe0bb02abd5beb0 /include/oox | |
parent | fbe183bbb05220a4ccc51952445b1797bb498403 (diff) |
ofz#37458 use o3tl::convertSaturate in convertEmuToHmm
Change-Id: Ic177ca6042cbedc4cbe70e1f35ac3d85c1fa2f7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120840
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/drawingmltypes.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oox/drawingml/drawingmltypes.hxx b/include/oox/drawingml/drawingmltypes.hxx index 873fb76435a8..05d218fa882e 100644 --- a/include/oox/drawingml/drawingmltypes.hxx +++ b/include/oox/drawingml/drawingmltypes.hxx @@ -181,7 +181,7 @@ inline sal_Int64 convertHmmToEmu( sal_Int32 nValue ) inline sal_Int32 convertEmuToHmm( sal_Int64 nValue ) { return getLimitedValue<sal_Int32, sal_Int64>( - o3tl::convert(nValue, o3tl::Length::emu, o3tl::Length::mm100), SAL_MIN_INT32, + o3tl::convertSaturate(nValue, o3tl::Length::emu, o3tl::Length::mm100), SAL_MIN_INT32, SAL_MAX_INT32); } |