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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 26 15:49:51 UTC 2018


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

New commits:
commit 879b34787b795d467e9492258fe1e78de2e72663
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 26 10:43:11 2018 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 26 16:49:30 2018 +0100

    like keypress does, on mouse press create a cursor if missing
    
    Change-Id: I57cd718ed03846dbff164acb5cd3c329d9eee615
    Reviewed-on: https://gerrit.libreoffice.org/64037
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 97ebe9a14d61..e61b0ebb05d4 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -1983,6 +1983,8 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt )
     if( aPos.X() > aOutputSize.Width() || aPos.Y() > aOutputSize.Height() )
         return;
 
+    if( !pCursor )
+        pCursor = pStartEntry;
     SvTreeListEntry* pEntry = GetEntry( aPos );
     if ( pEntry != pCursor )
         // new entry selected -> reset current tab position to first tab


More information about the Libreoffice-commits mailing list