From dc6233fcf45e4b58a9fa4c0abdd02aff67c23010 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 18 Aug 2016 15:11:28 -0700 Subject: [PATCH] BListView: Check index non-negative, not only not -1 --- src/kits/interface/ListView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index 8a123ecdcc..3f3e26da5d 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -574,7 +574,7 @@ BListView::MouseDown(BPoint where) fTrack->try_drag = true; } - if (index > -1) { + if (index >= 0) { if (fListType == B_MULTIPLE_SELECTION_LIST) { if ((modifiers & B_SHIFT_KEY) != 0) { // select entire block