Index: trunk/src/rats_patch.c =================================================================== --- trunk/src/rats_patch.c (revision 38259) +++ trunk/src/rats_patch.c (revision 38260) @@ -456,13 +456,13 @@ break; case RATP_COMP_ADD: - if (is_subc_on_netlist(&pcb->netlist[PCB_NETLIST_EDITED], n->id)) { + if (is_subc_on_netlist(&pcb->netlist[PCB_NETLIST_INPUT], n->id)) { rnd_message(RND_MSG_INFO, "rats patch: subcircuit %s has already been added, removing patch.\n", n->id); return 1; } break; case RATP_COMP_DEL: - if (!is_subc_on_netlist(&pcb->netlist[PCB_NETLIST_EDITED], n->id)) { + if (!is_subc_on_netlist(&pcb->netlist[PCB_NETLIST_INPUT], n->id)) { rnd_message(RND_MSG_INFO, "rats patch: subcircuit %s has already been deleted, removing patch.\n", n->id); return 1; }