Index: constraint_gui.c =================================================================== --- constraint_gui.c (revision 26941) +++ constraint_gui.c (revision 26942) @@ -76,7 +76,7 @@ #define c2g_coord(name) \ do { \ - PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.name, coord_value, cons.name); \ + PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.name, crd, cons.name); \ } while(0) /* copy all cons fields into the GUI struct */ @@ -130,12 +130,12 @@ g2c_array(line_angle, strtod(curr, &end)); g2c_scalar(line_angle_mod, dbl); g2c_array(line_length, pcb_get_value(curr, NULL, NULL, &succ)); - g2c_scalar(line_length_mod, coord_value); + g2c_scalar(line_length_mod, crd); g2c_array(move_angle, strtod(curr, &end)); g2c_scalar(move_angle_mod, dbl); g2c_array(move_length, pcb_get_value(curr, NULL, NULL, &succ)); - g2c_scalar(move_length_mod, coord_value); + g2c_scalar(move_length_mod, crd); } static void reset_line(void *hid_ctx, void *caller_data, pcb_hid_attribute_t *attr) @@ -143,7 +143,7 @@ PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.line_angle, str, pcb_strdup("")); PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.line_angle_mod, dbl, 0); PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.line_length, str, pcb_strdup("")); - PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.line_length_mod, coord_value, 0); + PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.line_length_mod, crd, 0); gui2cons(hid_ctx, caller_data, attr); } @@ -152,7 +152,7 @@ PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.move_angle, str, pcb_strdup("")); PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.move_angle_mod, dbl, 0); PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.move_length, str, pcb_strdup("")); - PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.move_length_mod, coord_value, 0); + PCB_DAD_SET_VALUE(cnstgui_ctx.dlg_hid_ctx, cnstgui_ctx.move_length_mod, crd, 0); gui2cons(hid_ctx, caller_data, attr); }