Index: routest.c =================================================================== --- routest.c (revision 34927) +++ routest.c (revision 34928) @@ -166,7 +166,7 @@ } if (ridx < 0) return; - pcb_use_route_style(&(PCB->RouteStyle.array[ridx])); + pcb_use_route_style_idx(PCB, ridx); rst_force_update_chk_and_dlg(); } @@ -180,7 +180,7 @@ static void rst_new_cb(void *hid_ctx, void *caller_data, rnd_hid_attribute_t *attr) { int target = pcb_route_style_new(PCB, "new style", 1); - pcb_use_route_style(&(PCB->RouteStyle.array[target])); + pcb_use_route_style_idx(PCB, target); pcb_dlg_rstdlg(target); } Index: routest_dlg.c =================================================================== --- routest_dlg.c (revision 34927) +++ routest_dlg.c (revision 34928) @@ -118,7 +118,7 @@ static void rst_updated(pcb_route_style_t *rst) { if (rst != NULL) - pcb_use_route_style(rst); + pcb_use_route_style_(rst); rnd_event(&PCB->hidlib, PCB_EVENT_ROUTE_STYLES_CHANGED, NULL); pcb_board_set_changed_flag(PCB, 1); } @@ -222,7 +222,7 @@ } /* something got modified - re-select the current route style so "pen" is updated */ - pcb_use_route_style(&(PCB->RouteStyle.array[rstdlg_ctx.curr])); + pcb_use_route_style_idx(PCB, rstdlg_ctx.curr); } static int rst_edit_attr(char **key, char **val)