From: johanengelen Date: Thu, 26 Jun 2008 15:03:47 +0000 (+0000) Subject: use all 2geom typed pathv_matrix_point_bbox_wind_distance X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78fc9e5f0840f4258dc46931ce60b4f613a81adb;p=inkscape.git use all 2geom typed pathv_matrix_point_bbox_wind_distance --- diff --git a/src/display/canvas-bpath.cpp b/src/display/canvas-bpath.cpp index eccaf4aed..e050591d7 100644 --- a/src/display/canvas-bpath.cpp +++ b/src/display/canvas-bpath.cpp @@ -189,10 +189,10 @@ sp_canvas_bpath_point (SPCanvasItem *item, NR::Point p, SPCanvasItem **actual_it return NR_HUGE; double width = 0.5; - NR::Rect viewbox = item->canvas->getViewbox(); - viewbox.growBy (width); + Geom::Rect viewbox = to_2geom(item->canvas->getViewbox()); + viewbox.expandBy (width); double dist = NR_HUGE; - pathv_matrix_point_bbox_wind_distance(cbp->curve->get_pathvector(), cbp->affine, p, NULL, NULL, &dist, 0.5, &viewbox); + pathv_matrix_point_bbox_wind_distance(cbp->curve->get_pathvector(), to_2geom(cbp->affine), to_2geom(p), NULL, NULL, &dist, 0.5, &viewbox); if (dist <= 1.0) { *actual_item = item;