undo should work on pads too (GAL view)
This commit is contained in:
parent
a3cf294881
commit
0879b457ac
|
@ -387,7 +387,7 @@ void PCB_EDIT_FRAME::SaveCopyInUndoList( const PICKED_ITEMS_LIST& aItemsList,
|
||||||
BOARD_ITEM* item = (BOARD_ITEM*) commandToUndo->GetPickedItem( ii );
|
BOARD_ITEM* item = (BOARD_ITEM*) commandToUndo->GetPickedItem( ii );
|
||||||
|
|
||||||
// For texts belonging to modules, we need to save state of the parent module
|
// For texts belonging to modules, we need to save state of the parent module
|
||||||
if( item->Type() == PCB_MODULE_TEXT_T )
|
if( item->Type() == PCB_MODULE_TEXT_T || item->Type() == PCB_PAD_T )
|
||||||
{
|
{
|
||||||
item = item->GetParent();
|
item = item->GetParent();
|
||||||
wxASSERT( item->Type() == PCB_MODULE_T );
|
wxASSERT( item->Type() == PCB_MODULE_T );
|
||||||
|
|
Loading…
Reference in New Issue