BListView: Check index non-negative, not only not -1

This commit is contained in:
John Scipione
2016-08-18 16:36:44 -07:00
parent e10ca8cd1b
commit dc6233fcf4
+1 -1
View File
@@ -574,7 +574,7 @@ BListView::MouseDown(BPoint where)
fTrack->try_drag = true; fTrack->try_drag = true;
} }
if (index > -1) { if (index >= 0) {
if (fListType == B_MULTIPLE_SELECTION_LIST) { if (fListType == B_MULTIPLE_SELECTION_LIST) {
if ((modifiers & B_SHIFT_KEY) != 0) { if ((modifiers & B_SHIFT_KEY) != 0) {
// select entire block // select entire block