Fixed center-on-zoom behaviour in the GAL canvas
Fixes: lp:1672868 * https://bugs.launchpad.net/kicad/+bug/1672868
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user