summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-25 21:05:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-06-26 10:57:55 +0200
commit8753cc269a350cc468e4f54f961f304a35144467 (patch)
treeb4227b9d361d2c55c98a1fc666b7a65d5a54ccf7 /svx
parent219e2f6fb8a9855fc8c7012370837c0e46d31255 (diff)
tdf#134285 select the item before dragging it
so we don't get the previously selected item Change-Id: Ifd6e46d97f1de0de86403b9c237ee8d2cd3a6cd3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97137 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/galctrl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index 6604eee1e662..47ef1757755d 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -400,6 +400,7 @@ bool GalleryIconView::KeyInput(const KeyEvent& rKEvt)
bool GalleryIconView::StartDrag()
{
+ Select();
return mpParent->StartDrag();
}