[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 4 12:52:57 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c9f5f86e0bd2325f3e105250bc1ad613bc62ceb4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 4 11:28:51 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 4 13:51:41 2019 +0100

    improve pivot table dnd highlighting
    
    if we're dropping into a treeview that is in list mode then use
    GTK_TREE_VIEW_DROP_AFTER instead when GTK_TREE_VIEW_DROP_INTO_OR_AFTER is
    suggested.
    
    Change-Id: I446e70a1e10a2e6e50bd7a098c54a91bcfa6abb9
    Reviewed-on: https://gerrit.libreoffice.org/81998
    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/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index aec86f2d2f73..54cd3bee15c3 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -9595,7 +9595,7 @@ public:
                 gtkpos == GTK_TREE_VIEW_DROP_INTO_OR_AFTER)
             {
                 ret = false;
-                pos = gtkpos;
+                pos = bAsTree ? gtkpos : GTK_TREE_VIEW_DROP_AFTER;
             }
         }
 


More information about the Libreoffice-commits mailing list