Index: mentor_sch.c =================================================================== --- mentor_sch.c (revision 32674) +++ mentor_sch.c (revision 32675) @@ -34,6 +34,7 @@ #include "board.h" #include "data.h" +#include "undo.h" #include "plug_import.h" #include #include @@ -179,6 +180,8 @@ return -1; } + pcb_undo_freeze_serial(); + rnd_actionva(&PCB->hidlib, "Netlist", "Freeze", NULL); rnd_actionva(&PCB->hidlib, "Netlist", "Clear", NULL); rnd_actionva(&PCB->hidlib, "ElementList", "start", NULL); @@ -205,6 +208,9 @@ rnd_actionva(&PCB->hidlib, "Netlist", "Sort", NULL); rnd_actionva(&PCB->hidlib, "Netlist", "Thaw", NULL); + pcb_undo_unfreeze_serial(); + pcb_undo_inc_serial(); + /* for(n = library->children; n != NULL; n = n->next) { printf("n=%s\n", n->str); if (strcmp(n->str, "cell") == 0) {