Removed an excessive selection request from EDIT_TOOL

This commit is contained in:
Maciej Suminski 2017-07-27 10:56:26 +02:00
parent 75f68061a4
commit 545a80839b
1 changed files with 1 additions and 6 deletions

View File

@ -328,7 +328,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
// Be sure that there is at least one item that we can modify. If nothing was selected before,
// try looking for the stuff under mouse cursor (i.e. Kicad old-style hover selection)
auto& selection = m_selectionTool->RequestSelection( SELECTION_DELETABLE );
auto& selection = m_selectionTool->RequestSelection( SELECTION_DEFAULT );
if( selection.Empty() )
return 0;
@ -382,11 +382,6 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
{
if( !invokeInlineRouter() )
{
selection = m_selectionTool->RequestSelection( SELECTION_DEFAULT );
if( selection.Empty() )
break;
// deal with locked items (override lock or abort the operation)
SELECTION_LOCK_FLAGS lockFlags = m_selectionTool->CheckLock();