[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 14 10:03:16 UTC 2021


 vcl/source/treelist/svimpbox.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit fc319d0872d0873ab22b98ba457fdce5cf3cb323
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 13 16:56:23 2021 +0100
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Wed Jul 14 12:02:38 2021 +0200

    tdf#143245 activate-on-single-click only if 'up' is at active entry
    
    which is typically selected by the 'down'
    
    Change-Id: I23382fb97146820da49e570280778729a3156f03
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118806
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 11a8fb344998..835ee2eac949 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2017,7 +2017,16 @@ void SvImpLBox::MouseButtonUp( const MouseEvent& rMEvt)
     }
 
     if (m_pView->mbActivateOnSingleClick)
+    {
+        Point aPos(rMEvt.GetPosPixel());
+        SvTreeListEntry* pEntry = GetEntry(aPos);
+        // tdf#143245 ActivateOnSingleClick only
+        // if the 'up' is at the active entry
+        // typically selected by the 'down'
+        if (!pEntry || pEntry != m_pCursor)
+            return;
         m_pView->DoubleClickHdl();
+    }
 }
 
 void SvImpLBox::MouseMove( const MouseEvent& rMEvt)


More information about the Libreoffice-commits mailing list