vcl/unx/gtk3/gtkinst.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8abc00614b746ce751838f9e33f62664ed515542
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Oct 1 13:08:15 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Oct 3 00:08:53 2022 +0200

    use G_MAXINT to create an "invalid" path to use to unset cursor
    
    Change-Id: I475a64ac3977bad716ce6f94a88ff02af37a932c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140847
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index ae5937dfa2ef..f0ba23618dcb 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -15188,7 +15188,7 @@ public:
             gtk_tree_view_scroll_to_cell(m_pTreeView, path, nullptr, false, 0, 
0);
         }
         else
-            path = gtk_tree_path_new_from_string("0:1:0");
+            path = gtk_tree_path_new_from_indices(G_MAXINT, -1);
         gtk_tree_view_set_cursor(m_pTreeView, path, nullptr, false);
         gtk_tree_path_free(path);
         enable_notify_events();
@@ -21152,7 +21152,7 @@ private:
         GtkTreePath* path;
         if (pos == -1)
         {
-            path = gtk_tree_path_new_from_string("0:1:0");
+            path = gtk_tree_path_new_from_indices(G_MAXINT, -1);
             
gtk_tree_selection_unselect_all(gtk_tree_view_get_selection(m_pTreeView));
             if (m_pCellView)
                 gtk_cell_view_set_displayed_row(m_pCellView, nullptr);

Reply via email to