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

New commits:
commit 0c2d5312071a2de2ef2a9bdb997b8b8d4a91e9b4
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Sep 30 11:20:28 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Sep 30 14:13:03 2022 +0200

    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>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index f37164de7400..3dc15b3016ff 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -21152,7 +21152,7 @@ private:
         GtkTreePath* path;
         if (pos == -1)
         {
-            path = gtk_tree_path_new();
+            path = gtk_tree_path_new_from_string("0:1:0");
             
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