Index: rotate.c =================================================================== --- rotate.c (revision 25188) +++ rotate.c (revision 25189) @@ -96,7 +96,7 @@ ctx.rotate.center_x = X; ctx.rotate.center_y = Y; - pcb_event(PCB_EVENT_RUBBER_ROTATE90, "ipppccip", Type, Ptr1, Ptr2, Ptr2, ctx.rotate.center_x, ctx.rotate.center_y, ctx.rotate.number, &changed); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_ROTATE90, "ipppccip", Type, Ptr1, Ptr2, Ptr2, ctx.rotate.center_x, ctx.rotate.center_y, ctx.rotate.number, &changed); if (Type != PCB_OBJ_PSTK) /* padstack has its own way doing the rotation-undo */ pcb_undo_add_obj_to_rotate90(Type, Ptr1, Ptr2, Ptr3, ctx.rotate.center_x, ctx.rotate.center_y, ctx.rotate.number); @@ -121,7 +121,7 @@ ctx.rotate.center_x = X; ctx.rotate.center_y = Y; - pcb_event(PCB_EVENT_RUBBER_ROTATE, "ipppccip", Type, Ptr1, Ptr2, Ptr2, ctx.rotate.center_x, ctx.rotate.center_y, ctx.rotate.angle, &changed); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_ROTATE, "ipppccip", Type, Ptr1, Ptr2, Ptr2, ctx.rotate.center_x, ctx.rotate.center_y, ctx.rotate.angle, &changed); if (Type != PCB_OBJ_PSTK) /* padstack has its own way doing the rotation-undo */ pcb_undo_add_obj_to_rotate(Type, Ptr1, Ptr2, Ptr3, ctx.rotate.center_x, ctx.rotate.center_y, ctx.rotate.angle); @@ -144,11 +144,11 @@ pcb_message(PCB_MSG_WARNING, "Sorry, %s object is locked\n", pcb_obj_type_name(obj->type)); return; } - pcb_event(PCB_EVENT_RUBBER_RESET, NULL); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_RESET, NULL); if (conf_core.editor.rubber_band_mode) - pcb_event(PCB_EVENT_RUBBER_LOOKUP_LINES, "ippp", type, ptr1, ptr2, ptr3); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_LOOKUP_LINES, "ippp", type, ptr1, ptr2, ptr3); if (type == PCB_OBJ_SUBC) - pcb_event(PCB_EVENT_RUBBER_LOOKUP_RATS, "ippp", type, ptr1, ptr2, ptr3); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_LOOKUP_RATS, "ippp", type, ptr1, ptr2, ptr3); pcb_obj_rotate90(type, ptr1, ptr2, ptr3, X, Y, Steps); pcb_board_set_changed_flag(pcb_true); } @@ -164,11 +164,11 @@ pcb_message(PCB_MSG_WARNING, "Sorry, %s object is locked\n", pcb_obj_type_name(obj->type)); return; } - pcb_event(PCB_EVENT_RUBBER_RESET, NULL); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_RESET, NULL); if (conf_core.editor.rubber_band_mode) - pcb_event(PCB_EVENT_RUBBER_LOOKUP_LINES, "ippp", type, ptr1, ptr2, ptr3); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_LOOKUP_LINES, "ippp", type, ptr1, ptr2, ptr3); if (type == PCB_OBJ_SUBC) - pcb_event(PCB_EVENT_RUBBER_LOOKUP_RATS, "ippp", type, ptr1, ptr2, ptr3); + pcb_event(&PCB->hidlib, PCB_EVENT_RUBBER_LOOKUP_RATS, "ippp", type, ptr1, ptr2, ptr3); pcb_obj_rotate(type, ptr1, ptr2, ptr3, X, Y, angle); pcb_board_set_changed_flag(pcb_true); }