summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-11-26 10:43:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-11-26 16:49:30 +0100
commit879b34787b795d467e9492258fe1e78de2e72663 (patch)
treeeab8e0a589cebd8f61856f24d52125105b14a7c1 /vcl
parentda957eff1dc2e4b9e49a27799344978af03a6e24 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svimpbox.cxx2
1 files changed, 2 insertions, 0 deletions
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