summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-26 15:09:23 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-26 15:09:23 +0000
commit1b648575bfa800f9f60eac263f91d192b76ba0c6 (patch)
tree9e8e586f418f7345259b8875162372ccbe1fee94 /src
parentadd const to pointers that are not written to (diff)
downloadinkscape-1b648575bfa800f9f60eac263f91d192b76ba0c6.tar.gz
inkscape-1b648575bfa800f9f60eac263f91d192b76ba0c6.zip
use all 2geom typed pathv_matrix_point_bbox_wind_distance
(bzr r6072)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-arena-shape.cpp8
1 files 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);