Prevent 'select copper' & 'select trivial connection' from picking modules.

This commit is contained in:
Maciej Suminski 2015-07-28 17:33:18 +02:00
parent f7dbd8a213
commit 63b0e63152
1 changed files with 2 additions and 10 deletions

View File

@ -592,8 +592,6 @@ int SELECTION_TOOL::UnselectItem( const TOOL_EVENT& aEvent )
int SELECTION_TOOL::selectConnection( const TOOL_EVENT& aEvent )
{
bool unselect = m_selection.Empty();
if( !selectCursor( true ) )
return 0;
@ -601,9 +599,7 @@ int SELECTION_TOOL::selectConnection( const TOOL_EVENT& aEvent )
if( item->Type() != PCB_TRACE_T && item->Type() != PCB_VIA_T )
{
if( unselect )
clearSelection();
return 0;
}
@ -632,8 +628,6 @@ int SELECTION_TOOL::selectConnection( const TOOL_EVENT& aEvent )
int SELECTION_TOOL::selectCopper( const TOOL_EVENT& aEvent )
{
bool unselect = m_selection.Empty();
if( !selectCursor( true ) )
return 0;
@ -641,9 +635,7 @@ int SELECTION_TOOL::selectCopper( const TOOL_EVENT& aEvent )
if( item->Type() != PCB_TRACE_T && item->Type() != PCB_VIA_T )
{
if( unselect )
clearSelection();
return 0;
}