From 00870e8231f6fc0dd17583e50d25347e5928f70d Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 19 Nov 2004 13:12:06 +0000 Subject: [PATCH] r3719: Bugfix: Dragging a lasso box above the top of the window in details mode selected all the items outside the box (Thomas Leonard; reported by Anthony DiSante). --- ROX-Filer/Help/Changes | 6 ++++++ ROX-Filer/src/view_details.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index 9cc3d141..29fe29b0 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -2,6 +2,12 @@ A RISC OS-like filer for X by Thomas Leonard +19-Nov-2004 +~~~~~~~~~~~ +Bugfix: Dragging a lasso box above the top of the window in details mode + selected all the items outside the box (Thomas Leonard; reported by + Anthony DiSante). + 12-Nov-2004 ~~~~~~~~~~~ Only show executable files in green if clicking would actually run them, not diff --git a/ROX-Filer/src/view_details.c b/ROX-Filer/src/view_details.c index 40bba662..b2c06237 100644 --- a/ROX-Filer/src/view_details.c +++ b/ROX-Filer/src/view_details.c @@ -659,6 +659,9 @@ static int get_lasso_index(ViewDetails *view_details, int y) gint cell_y; int i; + if (y < 0) + y = 0; /* gtk_tree_view_get_path_at_pos can't handle negatives */ + if (gtk_tree_view_get_path_at_pos(tree, 4, y, &path, &column, NULL, &cell_y)) { -- 2.11.4.GIT