Ticket #13460: 0002-fixes-the-bug-that-caused-multi-selection-by-SHIFT-c.patch

File 0002-fixes-the-bug-that-caused-multi-selection-by-SHIFT-c.patch, 1.1 KB (added by owenca, 7 years ago)
  • src/kits/tracker/PoseView.cpp

    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)  
    40694069        ClearSelection();
    40704070
    40714071    AddPoseToSelection(pose, index, scrollIntoView);
     4072
     4073    if (pose != NULL)
     4074        fSelectionPivotPose = pose;
    40724075}
    40734076
    40744077