Index: trunk/src/box.c =================================================================== --- trunk/src/box.c (revision 28801) +++ trunk/src/box.c (revision 28802) @@ -33,12 +33,6 @@ #include "rotate.h" #include "box.h" -void pcb_set_point_bounding_box(pcb_point_t *Pnt) -{ - Pnt->X2 = Pnt->X + 1; - Pnt->Y2 = Pnt->Y + 1; -} - void pcb_box_rotate90(pcb_box_t *Box, pcb_coord_t X, pcb_coord_t Y, unsigned Number) { pcb_coord_t x1 = Box->X1, y1 = Box->Y1, x2 = Box->X2, y2 = Box->Y2; Index: trunk/src/box.h =================================================================== --- trunk/src/box.h (revision 28801) +++ trunk/src/box.h (revision 28802) @@ -44,10 +44,10 @@ #define PCB_BOX_H #include +#include "config.h" #include "math_helper.h" #include "global_typedefs.h" -#include "config.h" -#include "obj_common.h" +#include "pcb_bool.h" struct pcb_box_list_s { pcb_cardinal_t BoxN, /* the number of boxes contained */ @@ -255,9 +255,6 @@ if (y > dst->Y2) dst->Y2 = y; } -/* sets the bounding box of a point */ -void pcb_set_point_bounding_box(pcb_point_t *Pnt); - /* rotates a box in 90 degree steps */ void pcb_box_rotate90(pcb_box_t *Box, pcb_coord_t X, pcb_coord_t Y, unsigned Number); Index: trunk/src/obj_common.c =================================================================== --- trunk/src/obj_common.c (revision 28801) +++ trunk/src/obj_common.c (revision 28802) @@ -449,3 +449,9 @@ pcb_obj_id_reg(data, obj); } + +void pcb_set_point_bounding_box(pcb_point_t *Pnt) +{ + Pnt->X2 = Pnt->X + 1; + Pnt->Y2 = Pnt->Y + 1; +} Index: trunk/src/obj_common.h =================================================================== --- trunk/src/obj_common.h (revision 28801) +++ trunk/src/obj_common.h (revision 28802) @@ -242,6 +242,10 @@ /* change the ID of an object already registered in the ID hash */ void pcb_obj_change_id(pcb_any_obj_t *o, long int new_id); +/* sets the bounding box of a point */ +void pcb_set_point_bounding_box(pcb_point_t *Pnt); + + #define pcb_obj_id_reg(data, obj) \ do { \ pcb_any_obj_t *__obj__ = (pcb_any_obj_t *)(obj); \