diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-02 04:42:26 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-04 09:36:27 -0500 |
commit | 208861d5c7bb2d01597a4c77c4a0d9cc865dd851 (patch) | |
tree | 2f62117890558a872dfe26caa345538812aff7a5 /svx/source/unodraw | |
parent | c626e496b21291ef2b4d023bb75ce3af32065324 (diff) |
coverity#1242737 Result is not floating-point
Change-Id: Ic466b5a8e4f5221248c6733fc7fbd0c98c0bd45f
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/UnoGraphicExporter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index 75a38bef4fa5..6e9ab225d123 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -687,8 +687,8 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, else nHeightPix = aSizePix.Height(); - double fWidthDif = aSizePix.Width() / nWidthPix; - double fHeightDif = aSizePix.Height() / nHeightPix; + double fWidthDif = (double)aSizePix.Width() / nWidthPix; + double fHeightDif = (double)aSizePix.Height() / nHeightPix; if (fWidthDif > fHeightDif) nHeightPix = static_cast<long>(aSizePix.Height() / fWidthDif); |