summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6a2e62)
raw | patch | inline | side by side (parent: f6a2e62)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 26 Jun 2008 15:03:47 +0000 (15:03 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 26 Jun 2008 15:03:47 +0000 (15:03 +0000) |
src/display/canvas-bpath.cpp | patch | blob | history |
index eccaf4aeddd1652fce1a26831acc7a11b8a4cced..e050591d7e3615c4f32a4d05aec6458e7ef73136 100644 (file)
@@ -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;