Fix for move-after-duplicate only needs the extra update once.

This version will be quite a bit more performant.

Fixes: lp:1813038
* https://bugs.launchpad.net/kicad/+bug/1813038
This commit is contained in:
Jeff Young 2019-09-02 19:51:58 +01:00
parent fc50ddda64
commit 4c9e4c947c
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,6 @@ int EDIT_TOOL::Move( const TOOL_EVENT& aEvent )
controls->SetAutoPan( true );
}
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
m_toolMgr->RunAction( PCB_ACTIONS::updateLocalRatsnest, false );
}
@ -511,6 +510,7 @@ int EDIT_TOOL::Move( const TOOL_EVENT& aEvent )
}
else
{
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
m_commit->Push( _( "Drag" ) );
}