BListView: Check index non-negative, not only not -1
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user