Kaydet (Commit) 01620615 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix float scale factor -> integer percentage conversion bug in my new code

Change-Id: I1b843ee1921bad3607e62f7e61b085a33cd84aed
üst 68eea32a
......@@ -1277,8 +1277,8 @@ sal_Bool SwView::HandleWheelCommands( const CommandEvent& rCEvt )
}
else if( pWData && COMMAND_WHEEL_ZOOM_SCALE == pWData->GetMode() )
{
long newZoom = 100 * (long) ((pWrtShell->GetViewOptions()->GetZoom() / 100.0) * (pWData->GetDelta() / 100.0));
SetZoom( SVX_ZOOM_PERCENT, Max( 20L, Min( 600L, newZoom ) ) );
int newZoom = 100 * (pWrtShell->GetViewOptions()->GetZoom() / 100.0) * (pWData->GetDelta() / 100.0);
SetZoom( SVX_ZOOM_PERCENT, Max( 20, Min( 600, newZoom ) ) );
bOk = sal_True;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment