diff options
Diffstat (limited to 'emfio/source')
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 349f686f4ea9..b6de61d1f6bc 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -514,8 +514,9 @@ namespace emfio // must later be made portable in SV (KA 1996-02-08) Size aFontSize = ImplMap (rFont.GetFontSize(), false); - if( aFontSize.Height() < 0 ) - aFontSize.Height() *= -1; + const auto nHeight = aFontSize.Height(); + if (nHeight < 0) + aFontSize.Height() = o3tl::saturating_toggle_sign(nHeight); rFont.SetFontSize( aFontSize ); |