summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-01-25 14:45:52 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-01-25 19:05:30 +0200
commit113dca13b1d0f957d69c25d6d9e84e821bd710aa (patch)
tree2abf4c3067eb0c77e1ff23e725b89752b9f70e64 /sw
parent51dccd65538da5776a8c3ae12d5dd1ef926dc00a (diff)
WaE: int and long confusion
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/viewport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx
index ae6ef2046439..2591b507f1a1 100644
--- a/sw/source/ui/uiview/viewport.cxx
+++ b/sw/source/ui/uiview/viewport.cxx
@@ -1311,9 +1311,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, basegfx::zoomtools::zoomOut( nFact )));
+ nFact = static_cast< sal_uInt16 >(Max( 20, basegfx::zoomtools::zoomOut( static_cast<int>(nFact) )));
else
- nFact = static_cast< sal_uInt16 >(Min( 600, basegfx::zoomtools::zoomIn( nFact )));
+ nFact = static_cast< sal_uInt16 >(Min( 600, basegfx::zoomtools::zoomIn( static_cast<int>(nFact) )));
SetZoom( SVX_ZOOM_PERCENT, nFact );
bOk = sal_True;