Clean up handling of selection changes

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13620
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13609
This commit is contained in:
Jon Evans
2023-01-21 17:37:29 -05:00
parent 0c3e245ff3
commit 3a9ef02fdf
5 changed files with 25 additions and 12 deletions
+10
View File
@@ -29,6 +29,16 @@
#include <tool/selection.h>
bool SELECTION::operator==( const SELECTION& aOther )
{
return ( m_items == aOther.m_items
&& m_itemsOrders == aOther.m_itemsOrders
&& m_isHover == aOther.m_isHover
&& m_lastAddedItem == aOther.m_lastAddedItem
&& m_orderCounter == aOther.m_orderCounter );
}
void SELECTION::Add( EDA_ITEM* aItem )
{
// We're not sorting here; this is just a time-optimized way to do an