Incrementing: add some types to selection filters
This commit is contained in:
@@ -1097,7 +1097,7 @@ int SYMBOL_EDITOR_EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent )
|
||||
int SYMBOL_EDITOR_EDIT_TOOL::Increment( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
const ACTIONS::INCREMENT incParam = aEvent.Parameter<ACTIONS::INCREMENT>();
|
||||
EE_SELECTION& selection = m_selectionTool->RequestSelection( { SCH_PIN_T } );
|
||||
EE_SELECTION& selection = m_selectionTool->RequestSelection( { SCH_PIN_T, SCH_TEXT_T } );
|
||||
|
||||
if( selection.Empty() )
|
||||
return 0;
|
||||
|
||||
@@ -2969,8 +2969,15 @@ int EDIT_TOOL::Increment( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
for( int i = aCollector.GetCount() - 1; i >= 0; i-- )
|
||||
{
|
||||
if( aCollector[i]->Type() != PCB_PAD_T )
|
||||
switch( aCollector[i]->Type() )
|
||||
{
|
||||
case PCB_PAD_T:
|
||||
case PCB_TEXT_T:
|
||||
break;
|
||||
default:
|
||||
aCollector.Remove( i );
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user