From 14fd28fc957af56c56f82d5c1291417ed49a4417 Mon Sep 17 00:00:00 2001
From: Owen <owenca@users.noreply.github.com>
Date: Fri, 28 Apr 2017 22:23:44 +0000
Subject: [PATCH 2/2] fixes the bug that caused multi-selection by
SHIFT-cliking to fail if an item in the file panel was selected by a key
(ticket #13460)
If the user tries to select a single item by pressing a key (Left/Right,
Up/Down, etc.), the BPoseView::KeyDown() function will call the
BPoseView::SelectPose() function, which must set fSelectionPivotPose to
the selected item (or pose) because this item might be the starting (or
pivot) pose of the next multi-selection by SHIFT-click.
---
src/kits/tracker/PoseView.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index b8ba49d..6bddd05 100644
a
|
b
|
BPoseView::SelectPose(BPose* pose, int32 index, bool scrollIntoView)
|
4069 | 4069 | ClearSelection(); |
4070 | 4070 | |
4071 | 4071 | AddPoseToSelection(pose, index, scrollIntoView); |
| 4072 | |
| 4073 | if (pose != NULL) |
| 4074 | fSelectionPivotPose = pose; |
4072 | 4075 | } |
4073 | 4076 | |
4074 | 4077 | |