Index: trunk/src/action_helper.c =================================================================== --- trunk/src/action_helper.c (revision 17683) +++ trunk/src/action_helper.c (revision 17684) @@ -50,7 +50,6 @@ #include "search.h" #include "select.h" #include "undo.h" -#include "stub_stroke.h" #include "funchash_core.h" #include "actions.h" #include "compat_misc.h" @@ -145,14 +144,3 @@ pcb_tool_notify_mode(); pcb_draw(); } - -void pcb_event_move_crosshair(pcb_coord_t ev_x, pcb_coord_t ev_y) -{ - if (pcb_mid_stroke) - pcb_stub_stroke_record(ev_x, ev_y); - if (pcb_crosshair_move_absolute(ev_x, ev_y)) { - /* update object position and cursor location */ - pcb_adjust_attached_objects(); - pcb_notify_crosshair_change(pcb_true); - } -} Index: trunk/src/action_helper.h =================================================================== --- trunk/src/action_helper.h (revision 17683) +++ trunk/src/action_helper.h (revision 17684) @@ -32,10 +32,6 @@ #include "global_typedefs.h" -/* Event handler to set the cursor according to the X pointer position - called from inside main.c */ -void pcb_event_move_crosshair(pcb_coord_t ev_x, pcb_coord_t ev_y); - /* adjusts the objects which are to be created like attached lines... */ void pcb_adjust_attached_objects(void); Index: trunk/src/crosshair.c =================================================================== --- trunk/src/crosshair.c (revision 17683) +++ trunk/src/crosshair.c (revision 17684) @@ -48,6 +48,7 @@ #include "action_helper.h" #include "macro.h" #include "grid.h" +#include "stub_stroke.h" #include "obj_line_draw.h" #include "obj_arc_draw.h" @@ -1136,3 +1137,13 @@ } } +void pcb_event_move_crosshair(pcb_coord_t ev_x, pcb_coord_t ev_y) +{ + if (pcb_mid_stroke) + pcb_stub_stroke_record(ev_x, ev_y); + if (pcb_crosshair_move_absolute(ev_x, ev_y)) { + /* update object position and cursor location */ + pcb_adjust_attached_objects(); + pcb_notify_crosshair_change(pcb_true); + } +} Index: trunk/src/crosshair.h =================================================================== --- trunk/src/crosshair.h (revision 17683) +++ trunk/src/crosshair.h (revision 17684) @@ -115,6 +115,10 @@ void pcb_crosshair_set_local_ref(pcb_coord_t X, pcb_coord_t Y, pcb_bool Showing); +/* Event handler to set the cursor according to the X pointer position + called from inside main.c */ +void pcb_event_move_crosshair(pcb_coord_t ev_x, pcb_coord_t ev_y); + /*** utility for plugins ***/ void pcb_xordraw_attached_line(pcb_coord_t, pcb_coord_t, pcb_coord_t, pcb_coord_t, pcb_coord_t); void pcb_xordraw_poly(pcb_poly_t *polygon, pcb_coord_t dx, pcb_coord_t dy, int dash_last);