summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews8.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviews8.cxx')
-rw-r--r--sd/source/ui/view/drviews8.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews8.cxx b/sd/source/ui/view/drviews8.cxx
index 3d0bf89a5888..7904c458bf8f 100644
--- a/sd/source/ui/view/drviews8.cxx
+++ b/sd/source/ui/view/drviews8.cxx
@@ -79,8 +79,8 @@ void DrawViewShell::ScannerEvent()
if( ( ( aBmpSize.Height() > aPageSize.Height() ) || ( aBmpSize.Width() > aPageSize.Width() ) ) && aBmpSize.Height() && aPageSize.Height() )
{
- double fGrfWH = (double) aBmpSize.Width() / aBmpSize.Height();
- double fWinWH = (double) aPageSize.Width() / aPageSize.Height();
+ double fGrfWH = static_cast<double>(aBmpSize.Width()) / aBmpSize.Height();
+ double fWinWH = static_cast<double>(aPageSize.Width()) / aPageSize.Height();
if( fGrfWH < fWinWH )
{