Index: obj_arc.c =================================================================== --- obj_arc.c (revision 37936) +++ obj_arc.c (revision 37937) @@ -348,7 +348,7 @@ { pcb_arc_bbox(Arc); if (!Layer->arc_tree) - Layer->arc_tree = rnd_r_create_tree(); + rnd_rtree_init(Layer->arc_tree = malloc(sizeof(rnd_rtree_t))); rnd_rtree_insert(Layer->arc_tree, Arc, (rnd_rtree_box_t *)Arc); Arc->type = PCB_OBJ_ARC; PCB_SET_PARENT(Arc, layer, Layer); @@ -542,7 +542,7 @@ PCB_FLAG_CLEAR(PCB_FLAG_FOUND, arc); if (!dstly->arc_tree) - dstly->arc_tree = rnd_r_create_tree(); + rnd_rtree_init(dstly->arc_tree = malloc(sizeof(rnd_rtree_t))); rnd_rtree_insert(dstly->arc_tree, arc, (rnd_rtree_box_t *)arc); pcb_poly_clear_from_poly(ctx->buffer.dst, PCB_OBJ_ARC, dstly, arc); @@ -780,7 +780,7 @@ pcb_arc_reg(Destination, arc); if (!Destination->arc_tree) - Destination->arc_tree = rnd_r_create_tree(); + rnd_rtree_init(Destination->arc_tree = malloc(sizeof(rnd_rtree_t))); rnd_rtree_insert(Destination->arc_tree, arc, (rnd_rtree_box_t *)arc); return arc;