gal: reset autopan state when autopanning is disabled

Fixes: lp:1674022
* https://bugs.launchpad.net/kicad/+bug/1674022
This commit is contained in:
Tomasz Włostowski 2017-03-20 11:45:34 +01:00
parent 2637835a1e
commit f599f10a03
1 changed files with 6 additions and 0 deletions

View File

@ -278,6 +278,12 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
{
case AUTO_PANNING:
{
if ( !m_settings.m_autoPanEnabled )
{
m_state = IDLE;
return;
}
#if wxCHECK_VERSION( 3, 0, 0 )
if( !m_parentPanel->HasFocus() )
break;