summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx4
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);