Fixed center-on-zoom behaviour in the GAL canvas

Fixes: lp:1672868
* https://bugs.launchpad.net/kicad/+bug/1672868
This commit is contained in:
Tomasz Włostowski
2017-03-15 11:48:35 +01:00
parent 0a29ab9031
commit 3cc90ce2d2
2 changed files with 1 additions and 6 deletions
+1 -4
View File
@@ -89,10 +89,7 @@ int COMMON_TOOLS::ZoomCenter( const TOOL_EVENT& aEvent )
{
KIGFX::VIEW_CONTROLS* ctls = getViewControls();
if( ctls->IsCursorWarpingEnabled() )
ctls->CenterOnCursor();
else
getView()->SetCenter( getViewControls()->GetCursorPosition() );
ctls->CenterOnCursor();
return 0;
}