cui/source/dialogs/widgettestdlg.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 28cb831d77ae5443069f446aba2aed2948bd8042
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Jul 3 10:44:37 2025 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Jul 3 14:57:53 2025 +0200

    Fix out-of-bound crash in test dialog
    
    It is visible in LOK case
    I think issue is with the model in widgettestdialog.ui
    but merge it to keep CI green first.
    
    Change-Id: Ife12e7b9e067aae65ca38b66f353aad49e869eec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187308
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/cui/source/dialogs/widgettestdlg.cxx 
b/cui/source/dialogs/widgettestdlg.cxx
index 0de81751d35d..0d9eca2bd73a 100644
--- a/cui/source/dialogs/widgettestdlg.cxx
+++ b/cui/source/dialogs/widgettestdlg.cxx
@@ -48,8 +48,9 @@ void WidgetTestDialog::FillTreeView()
         m_xTreeView2->append();
         m_xTreeView2->set_image(nCount, (nCount % 2 == 0) ? aImage1 : aImage2);
         m_xTreeView2->set_text(nCount, u"First Column"_ustr, 0);
-        m_xTreeView2->set_text(
-            nCount, OUString::Concat("Row ") + 
OUString::Concat(OUString::number(nCount)), 1);
+        // FIXME: crash out-of-bound
+        //m_xTreeView2->set_text(
+        //    nCount, OUString::Concat("Row ") + 
OUString::Concat(OUString::number(nCount)), 1);
         m_xTreeView2->set_id(nCount, OUString::number(nCount));
     }
 }

Reply via email to