More undo bugs.

This commit is contained in:
Jeff Young 2023-10-09 22:32:17 +01:00
parent 994f9f8823
commit 099e5dd9e7
1 changed files with 9 additions and 1 deletions

View File

@ -240,6 +240,8 @@ public:
meander->m_targetLength = constraint.GetValue().Opt();
}
meander->SetFlags( IS_NEW );
return meander;
}
@ -249,7 +251,12 @@ public:
m_removedItems.clear();
if( aCommit )
aCommit->Modify( this );
{
if( IsNew() )
aCommit->Add( this );
else
aCommit->Modify( this );
}
int layer = GetLayer();
PNS::ROUTER* router = aTool->Router();
@ -685,6 +692,7 @@ public:
for( BOARD_ITEM* item : m_removedItems )
{
item->ClearSelected();
aFrame->GetCanvas()->GetView()->Hide( item, false );
aCommit->Remove( item );
}