From: johanengelen Date: Thu, 26 Jun 2008 15:09:23 +0000 (+0000) Subject: use all 2geom typed pathv_matrix_point_bbox_wind_distance X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a86d8d864dc5c93f84b842cd900e88c5c9ebf36;p=inkscape.git use all 2geom typed pathv_matrix_point_bbox_wind_distance --- diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 74f207809..7bd80c732 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -1092,11 +1092,11 @@ nr_arena_shape_pick(NRArenaItem *item, NR::Point p, double delta, unsigned int / && shape->_fill.opacity > 1e-3 && !outline); if (item->arena->canvasarena) { - NR::Rect viewbox = item->arena->canvasarena->item.canvas->getViewbox(); - viewbox.growBy (width); - pathv_matrix_point_bbox_wind_distance(shape->curve->get_pathvector(), shape->ctm, p, NULL, needfill? &wind : NULL, &dist, 0.5, &viewbox); + Geom::Rect viewbox = to_2geom(item->arena->canvasarena->item.canvas->getViewbox()); + viewbox.expandBy (width); + pathv_matrix_point_bbox_wind_distance(shape->curve->get_pathvector(), to_2geom(shape->ctm), to_2geom(p), NULL, needfill? &wind : NULL, &dist, 0.5, &viewbox); } else { - pathv_matrix_point_bbox_wind_distance(shape->curve->get_pathvector(), shape->ctm, p, NULL, needfill? &wind : NULL, &dist, 0.5, NULL); + pathv_matrix_point_bbox_wind_distance(shape->curve->get_pathvector(), to_2geom(shape->ctm), to_2geom(p), NULL, needfill? &wind : NULL, &dist, 0.5, NULL); } g_get_current_time (&tfinish);