summaryrefslogtreecommitdiff
path: root/sw
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 /sw
parentef0ee083e668be2b41e86196417893f84359aee8 (diff)
Use platform-independent ::rtl::math::round to fix msvc build
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/viewport.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx
index 6bbb5d6e0c87..e6300872c498 100644
--- a/sw/source/ui/uiview/viewport.cxx
+++ b/sw/source/ui/uiview/viewport.cxx
@@ -53,6 +53,7 @@
#include <IDocumentSettingAccess.hxx>
#include <svx/zoom_def.hxx>
+#include <rtl/math.hxx>
//Das SetVisArea der DocShell darf nicht vom InnerResizePixel gerufen werden.
//Unsere Einstellungen muessen aber stattfinden.
@@ -1311,9 +1312,9 @@ sal_Bool SwView::HandleWheelCommands( const CommandEvent& rCEvt )
{
sal_uInt16 nFact = pWrtShell->GetViewOptions()->GetZoom();
if( 0L > pWData->GetDelta() )
- nFact = static_cast< sal_uInt16 >(Max( 20, (int)round( nFact / ZOOM_FACTOR )));
+ nFact = static_cast< sal_uInt16 >(Max( 20, (int)::rtl::math::round( nFact / ZOOM_FACTOR )));
else
- nFact = static_cast< sal_uInt16 >(Min( 600, (int)round( nFact * ZOOM_FACTOR )));
+ nFact = static_cast< sal_uInt16 >(Min( 600, (int)::rtl::math::round( nFact * ZOOM_FACTOR )));
SetZoom( SVX_ZOOM_PERCENT, nFact );
bOk = sal_True;