diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-26 10:54:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-27 16:53:48 +0200 |
commit | 38e5169db360245daa9b9499589609cd80723f94 (patch) | |
tree | b9741a0394a612ca37d827eed49dc30f903ae01d /emfio/source | |
parent | 8b2ec0947c91eb12ae5e0302e2092bdf2ea5147e (diff) |
ofz#3823 Integer-overflow
Change-Id: Idb8ba0972dbfe2cf6ec43caef9b6984851f8f7ca
Reviewed-on: https://gerrit.libreoffice.org/43878
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/source')
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 038000e9a185..3693fe376dcc 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -488,7 +488,7 @@ namespace emfio break; } } - return Size( FRound( fWidth ), FRound( fHeight ) ); + return Size(basegfx::fround(fWidth), basegfx::fround(fHeight)); } else return Size(); @@ -1975,10 +1975,10 @@ namespace emfio } } - void MtfTools::ScaleDevExt( double fX, double fY ) + void MtfTools::ScaleDevExt(double fX, double fY) { - mnDevWidth = FRound( mnDevWidth * fX ); - mnDevHeight = FRound( mnDevHeight * fY ); + mnDevWidth = basegfx::fround(mnDevWidth * fX); + mnDevHeight = basegfx::fround(mnDevHeight * fY); } void MtfTools::SetWinOrg( const Point& rPoint , bool bIsEMF) @@ -2033,10 +2033,10 @@ namespace emfio } } - void MtfTools::ScaleWinExt( double fX, double fY ) + void MtfTools::ScaleWinExt(double fX, double fY) { - mnWinExtX = FRound( mnWinExtX * fX ); - mnWinExtY = FRound( mnWinExtY * fY ); + mnWinExtX = basegfx::fround(mnWinExtX * fX); + mnWinExtY = basegfx::fround(mnWinExtY * fY); } void MtfTools::SetrclBounds( const tools::Rectangle& rRect ) |