User pointer compare, not object compare.
This commit is contained in:
parent
e61822c9e0
commit
f5aefb7ad9
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue