Browse Source

Speed-up EE_SELECTION_TOOL::RequestSelection.

7.0
Alex 3 years ago
committed by Mike Williams
parent
commit
d343d87b73
  1. 6
      eeschema/tools/ee_selection_tool.cpp

6
eeschema/tools/ee_selection_tool.cpp

@ -1136,6 +1136,7 @@ EE_SELECTION& EE_SELECTION_TOOL::RequestSelection( const KICAD_T aFilterList[] )
else // Trim an existing selection by aFilterList
{
bool isMoving = false;
bool anyUnselected = false;
for( int i = (int) m_selection.GetSize() - 1; i >= 0; --i )
{
@ -1145,10 +1146,13 @@ EE_SELECTION& EE_SELECTION_TOOL::RequestSelection( const KICAD_T aFilterList[] )
if( !item->IsType( aFilterList ) )
{
unselect( item );
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
anyUnselected = true;
}
}
if( anyUnselected )
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
if( !isMoving )
updateReferencePoint();
}

Loading…
Cancel
Save