summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-25 16:47:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-25 21:30:39 +0200
commit304d42342bd359de97a5863febd992d2ce2f21ca (patch)
tree35e6d0f48daa46ebc78149fd1e9a416a1ab389c6 /emfio
parent71518d1898e574351dab4513a2d55bbed2b47fe3 (diff)
ofz#3374 Integer-overflow
Change-Id: If9568da924709ef523390b958ec6e8d2fd1b0e3d Reviewed-on: https://gerrit.libreoffice.org/43847 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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index a8ca126b101e..d6df538dc27c 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -505,7 +505,7 @@ namespace emfio
tools::Rectangle MtfTools::ImplMap( const tools::Rectangle& rRect )
{
- return tools::Rectangle( ImplMap( rRect.TopLeft() ), ImplMap( rRect.GetSize() ) );
+ return tools::Rectangle(ImplMap(rRect.TopLeft()), ImplMap(rRect.BottomRight()));
}
void MtfTools::ImplMap( vcl::Font& rFont )