Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 37077) +++ trunk/src/board.c (revision 37078) @@ -263,7 +263,7 @@ { free(PCB->hidlib.name); PCB->hidlib.name = Name; - pcb_board_replaced(0); + pcb_board_replaced(); return rnd_true; } @@ -275,7 +275,7 @@ pcb->hidlib.dwg.Y2 = y2; if (pcb == PCB) - pcb_board_replaced(0); + pcb_board_replaced(); } /*** undoable board resize ***/ @@ -388,7 +388,7 @@ } -void pcb_board_replaced(int reverted) +void pcb_board_replaced(void) { rnd_single_switch_to(&PCB->hidlib); } @@ -472,7 +472,7 @@ void pcb_board_changed_lib_ev(rnd_design_t *hidlib, void *user_data, int argc, rnd_event_arg_t argv[]) { - pcb_board_replaced(1); + pcb_board_replaced(); } void pcb_board_init(void) Index: trunk/src/board.h =================================================================== --- trunk/src/board.h (revision 37077) +++ trunk/src/board.h (revision 37078) @@ -163,7 +163,7 @@ void pcb_board_set_changed_flag(pcb_board_t *pcb, rnd_bool New); /* Shorthand for emitting a board replaced event (RND_EVENT_DESIGN_REPLACED) */ -void pcb_board_replaced(int reverted); +void pcb_board_replaced(void); /* pcb_board_t field accessors - do not use; required for path.[ch] to not depend on board.h */ Index: trunk/src/file_act.c =================================================================== --- trunk/src/file_act.c (revision 37077) +++ trunk/src/file_act.c (revision 37078) @@ -182,7 +182,7 @@ pcb_layervis_reset_stack(&pcb->hidlib); pcb_center_display(pcb, (pcb->hidlib.dwg.X1+pcb->hidlib.dwg.X2) / 2, (pcb->hidlib.dwg.Y1+pcb->hidlib.dwg.Y2) / 2); - pcb_board_replaced(0); + pcb_board_replaced(); rnd_hid_redraw(&PCB->hidlib); rnd_hid_notify_crosshair_change(RND_ACT_DESIGN, rnd_true); RND_ACT_IRES(0); Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 37077) +++ trunk/src/plug_io.c (revision 37078) @@ -692,7 +692,7 @@ } if ((how == 0) || (revert)) - pcb_board_replaced(revert); + pcb_board_replaced(); #ifdef DEBUG end = clock(); @@ -718,7 +718,7 @@ } if (!(how & PCB_INHIBIT_BOARD_CHANGED)) - pcb_board_replaced(0); + pcb_board_replaced(); /* release unused memory */ pcb_board_remove(newPCB); Index: trunk/src_plugins/oldactions/oldactions.c =================================================================== --- trunk/src_plugins/oldactions/oldactions.c (revision 37077) +++ trunk/src_plugins/oldactions/oldactions.c (revision 37078) @@ -248,15 +248,12 @@ static const char pcb_acts_PCBChanged[] = "PCBChanged([revert])"; static const char pcb_acth_PCBChanged[] = - "Tells the GUI that the whole PCB has changed. The optional \"revert\"" - "parameter can be used as a hint to the GUI that the same design is being" - "reloaded, and that it might keep some viewport settings"; + "Tells the GUI that the whole PCB has changed. The \"revert\"" + "parameter is deprecated but kept for compatibility and is ignored."; static fgw_error_t pcb_act_PCBChanged(fgw_arg_t *res, int argc, fgw_arg_t *argv) { - const char *rv = NULL; RND_ACT_IRES(0); - RND_ACT_MAY_CONVARG(1, FGW_STR, PCBChanged, rv = argv[1].val.str); - pcb_board_replaced((rv != NULL) && (rnd_strcasecmp(rv, "revert") == 0)); + pcb_board_replaced(); return 0; }