Fixed center-on-zoom behaviour in the GAL canvas
Fixes: lp:1672868 * https://bugs.launchpad.net/kicad/+bug/1672868
This commit is contained in:
parent
0a29ab9031
commit
3cc90ce2d2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -76,7 +76,5 @@ void VIEW_CONTROLS::ApplySettings( const VC_SETTINGS& aSettings )
|
|||
SetAutoPan( aSettings.m_autoPanEnabled );
|
||||
SetAutoPanMargin( aSettings.m_autoPanMargin );
|
||||
SetAutoPanSpeed( aSettings.m_autoPanSpeed );
|
||||
EnableCursorWarping( aSettings.m_warpCursor );
|
||||
EnableMousewheelPan( aSettings.m_enableMousewheelPan );
|
||||
ForceCursorPosition( aSettings.m_forceCursorPosition, aSettings.m_forcedPosition );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue