summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-01-17 00:18:08 +0700
committerKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-01-17 00:18:08 +0700
commita9ebfbc2b6c8db7997d5982435951c068120af6f (patch)
tree61d9ba9d84cfed9c892f7a42136f45f6914dbe82 /sd
parentef0ee083e668be2b41e86196417893f84359aee8 (diff)
Use platform-independent ::rtl::math::round to fix msvc build
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/viewshel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 6c79ec29863f..b1cc2d302093 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -83,6 +83,7 @@
#include "SpellDialogChildWindow.hxx"
#include <svx/zoom_def.hxx>
+#include <rtl/math.hxx>
#include "Window.hxx"
#include "fupoor.hxx"
@@ -718,9 +719,9 @@ bool ViewShell::HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWi
long nNewZoom;
if( pData->GetDelta() < 0L )
- nNewZoom = Max( (long) pWin->GetMinZoom(), (long)round( nOldZoom / ZOOM_FACTOR ));
+ nNewZoom = Max( (long) pWin->GetMinZoom(), (long)::rtl::math::round( nOldZoom / ZOOM_FACTOR ));
else
- nNewZoom = Min( (long) pWin->GetMaxZoom(), (long)round( nOldZoom * ZOOM_FACTOR ));
+ nNewZoom = Min( (long) pWin->GetMaxZoom(), (long)::rtl::math::round( nOldZoom * ZOOM_FACTOR ));
SetZoom( nNewZoom );
Invalidate( SID_ATTR_ZOOM );