Index: trunk/src/global.h =================================================================== --- trunk/src/global.h (revision 924) +++ trunk/src/global.h (revision 925) @@ -818,7 +818,7 @@ char *attrib_val; } arg2; - rats_patch_line_t *next; + rats_patch_line_t *prev, *next; }; /* --------------------------------------------------------------------------- Index: trunk/src/rats_patch.c =================================================================== --- trunk/src/rats_patch.c (revision 924) +++ trunk/src/rats_patch.c (revision 925) @@ -14,6 +14,8 @@ else n->arg2.attrib_val = NULL; + /* link in */ + n->prev = pcb->NetlistPatchLast; if (pcb->NetlistPatches != NULL) { pcb->NetlistPatchLast->next = n; pcb->NetlistPatchLast = n; Index: trunk/src/rats_patch.h =================================================================== --- trunk/src/rats_patch.h (revision 924) +++ trunk/src/rats_patch.h (revision 925) @@ -8,4 +8,4 @@ int rats_patch_apply(PCBTypePtr pcb, rats_patch_line_t *patch); /* find the net entry for a pin (slow) */ -LibraryMenuTypePtr rats_patch_find_net4pin(PCBTypePtr pcb, const char *pin); \ No newline at end of file +LibraryMenuTypePtr rats_patch_find_net4pin(PCBTypePtr pcb, const char *pin);