summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-18 21:28:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-01-19 21:51:31 +0100
commitf69e2f739ca3c23c9de055c8600c867e864cd4ff (patch)
tree53f38a54b25dc88933b07f58b5e45ff9b5b3f6f2 /emfio
parent25d159dd764d917a04e46819bb8efcc2a6067cd6 (diff)
ofz#5475 Integer-overflow
Change-Id: I11d706c544698d57b75231e33e3d49f1ac1d4d73 Reviewed-on: https://gerrit.libreoffice.org/48159 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 'emfio')
-rw-r--r--emfio/source/reader/mtftools.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index e3bbb5f6c4b8..44316fd29d0f 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -497,7 +497,10 @@ namespace emfio
tools::Rectangle MtfTools::ImplMap( const tools::Rectangle& rRect )
{
- return tools::Rectangle( ImplMap( rRect.TopLeft() ), ImplMap( rRect.GetSize() ) );
+ tools::Rectangle aRect;
+ aRect.SetPos(ImplMap(rRect.TopLeft()));
+ aRect.SaturatingSetSize(ImplMap(rRect.GetSize()));
+ return aRect;
}
void MtfTools::ImplMap( vcl::Font& rFont )