From 9a86d8d864dc5c93f84b842cd900e88c5c9ebf36 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 26 Jun 2008 15:09:23 +0000 Subject: [PATCH] use all 2geom typed pathv_matrix_point_bbox_wind_distance --- src/display/nr-arena-shape.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.30.2