pcbnew, undo_redo.cpp: fix a logical bug that can hang in rare cases.
This commit is contained in:
parent
1e1aaa249b
commit
30c001265b
|
@ -412,8 +412,6 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
||||||
|
|
||||||
// Remove this non existent item
|
// Remove this non existent item
|
||||||
aList->RemovePicker( ii );
|
aList->RemovePicker( ii );
|
||||||
ii++; // the current item was removed, ii points now the next item
|
|
||||||
// decrement it because it will be incremented later
|
|
||||||
not_found = true;
|
not_found = true;
|
||||||
|
|
||||||
if( aList->GetCount() == 0 )
|
if( aList->GetCount() == 0 )
|
||||||
|
|
Loading…
Reference in New Issue