Index: trunk/src_plugins/report/report.c =================================================================== --- trunk/src_plugins/report/report.c (revision 21882) +++ trunk/src_plugins/report/report.c (revision 21883) @@ -486,20 +486,8 @@ static int report_all_net_lengths(fgw_arg_t *res, int argc, fgw_arg_t *argv) { - int ni, found, want_undo; + int ni, found; - /* Reset all connection flags and save an undo-state to get back - * to the state the board was in when we started this function. - * - * After this, we don't add any changes to the undo system, but - * ensure we get back to a point where we can pcb_undo() our changes - * by resetting the connections with pcb_reset_conns() before - * calling pcb_undo() at the end of the procedure. - */ - want_undo = pcb_reset_conns(pcb_true); - if (want_undo) - pcb_undo_inc_serial(); - for (ni = 0; ni < PCB->NetlistLib[PCB_NETLIST_EDITED].MenuN; ni++) { const char *netname = PCB->NetlistLib[PCB_NETLIST_EDITED].Menu[ni].Name + 2; const char *list_entry = PCB->NetlistLib[PCB_NETLIST_EDITED].Menu[ni].Entry[0].ListEntry; @@ -532,17 +520,11 @@ length = xy_to_net_length(x, y, &found); - /* Reset connectors for the next lookup */ - pcb_reset_conns(pcb_false); - pcb_snprintf(buf, sizeof(buf), "%$m*", units_name, length); pcb_message(PCB_MSG_INFO, "Net %s length %s\n", netname, buf); } } - pcb_reset_conns(pcb_false); - if (want_undo) - pcb_undo(pcb_true); return 0; } @@ -586,20 +568,8 @@ static int report_net_length_(fgw_arg_t *res, int argc, fgw_arg_t *argv, pcb_coord_t x, pcb_coord_t y) { pcb_coord_t length = 0; - int found = 0, want_undo, ret; + int found = 0, ret; - /* Reset all connection flags and save an undo-state to get back - * to the state the board was in when we started this function. - * - * After this, we don't add any changes to the undo system, but - * ensure we get back to a point where we can pcb_undo() our changes - * by resetting the connections with pcb_reset_conns() before - * calling pcb_undo() at the end of the procedure. - */ - want_undo = pcb_reset_conns(pcb_true); - if (want_undo) - pcb_undo_inc_serial(); - length = xy_to_net_length(x, y, &found); if (found) { @@ -619,10 +589,6 @@ ret = 1; } - pcb_reset_conns(pcb_false); - if (want_undo) - pcb_undo(pcb_true); - return ret; } @@ -691,7 +657,7 @@ { char *netname = 0; pcb_coord_t length = 0; - int found = 0, i, want_undo; + int found = 0, i; pcb_lib_menu_t *net; pcb_connection_t conn; int net_found = 0; @@ -749,24 +715,9 @@ if (use_re) re_sei_free(regex); - /* Reset all connection flags and save an undo-state to get back - * to the state the board was in when we started. - * - * After this, we don't add any changes to the undo system, but - * ensure we get back to a point where we can pcb_undo() our changes - * by resetting the connections with pcb_reset_conns() before - * calling pcb_undo() when we are finished. - */ - want_undo = pcb_reset_conns(pcb_true); - if (want_undo) - pcb_undo_inc_serial(); - length = xy_to_net_length(x, y, &found); netname = net->Name + 2; - pcb_reset_conns(pcb_false); - if (want_undo) - pcb_undo(pcb_true); if (!found) { if (net_found)