From e4b9bae624fca91ef7fe2a933abf33b41f6d9e4a Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 14 Mar 2001 00:40:00 +0000 Subject: Made this function do something a little closer to what it is supposed to 2001-03-13 Christopher James Lahey * gal/widgets/e-reflow.c (e_reflow_point): Made this function do something a little closer to what it is supposed to do. svn path=/trunk/; revision=8693 --- widgets/misc/e-reflow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/misc/e-reflow.c') diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c index 735d965120..3fb664cea4 100644 --- a/widgets/misc/e-reflow.c +++ b/widgets/misc/e-reflow.c @@ -675,10 +675,12 @@ e_reflow_point (GnomeCanvasItem *item, { double distance = 1; + *actual_item = NULL; + if (GNOME_CANVAS_ITEM_CLASS(parent_class)->point) distance = GNOME_CANVAS_ITEM_CLASS(parent_class)->point (item, x, y, cx, cy, actual_item); - if (*actual_item) - return 0; + if ((int) (distance * item->canvas->pixels_per_unit + 0.5) <= item->canvas->close_enough && *actual_item) + return distance; *actual_item = item; return 0; -- cgit v1.2.3