[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 26 08:58:15 UTC 2020


 svx/source/gallery2/galctrl.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f4ce2b2ad1e9132faa1bfc63a6a5b59b32c10234
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 25 21:05:26 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 26 10:57:35 2020 +0200

    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/+/97187
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

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();
 }
 


More information about the Libreoffice-commits mailing list