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

New commits:
commit 33e6d658888d917e2e9bb8749e506df25d892cf5
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Sep 30 11:20:28 2022 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Wed Nov 9 11:11:08 2022 +0100

    gtk_tree_model_get_iter: assertion 'path->depth > 0' failed
    
    seen in format, cells in calc
    
    try an explicit depth
    
    Change-Id: I395563d2b412b2ca8839292296f9dad6db704620
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140797
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    (cherry picked from commit 0c2d5312071a2de2ef2a9bdb997b8b8d4a91e9b4)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142417
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 886375486336..13c0a254a9a0 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -14950,7 +14950,7 @@ public:
             gtk_tree_view_scroll_to_cell(m_pTreeView, path, nullptr, false, 0, 
0);
         }
         else
-            path = gtk_tree_path_new();
+            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();
@@ -20840,7 +20840,7 @@ private:
         GtkTreePath* path;
         if (pos == -1)
         {
-            path = gtk_tree_path_new();
+            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