User pointer compare, not object compare.

This commit is contained in:
Jeff Young 2021-07-19 13:16:42 +01:00
parent e61822c9e0
commit f5aefb7ad9
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ void LIB_SYMBOL::RemoveDrawItem( LIB_ITEM* aItem )
for( LIB_ITEMS::iterator i = items.begin(); i != items.end(); i++ ) for( LIB_ITEMS::iterator i = items.begin(); i != items.end(); i++ )
{ {
if( *i == aItem ) if( &*i == aItem )
{ {
items.erase( i ); items.erase( i );
SetModified(); SetModified();