vcl/source/app/salvtables.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a61fa94f70409b7c86ea7a006a784a26a2a3da84
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Oct 21 13:47:20 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Oct 21 16:57:18 2024 +0200

    tdf#163484 Treeview not maximized in the StyleList
    
    regression from
        commit 7f42f031ed1b9f374f3fcba9c814dc5862492026
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Thu Oct 10 09:39:14 2024 +0200
        tdf#100894 speed up style tree creation
    
    Change-Id: I953c2765090cfa56c7926c4cc10534f6ce60237b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175330
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 3c3bc90be2df..e20a36662b8c 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -4068,9 +4068,11 @@ void SalInstanceTreeView::bulk_insert_for_each(
     for (int i = 0; i < nSourceCount; ++i)
     {
         aVclIter.iter = new SvTreeListEntry;
-        if (bHasAutoCheckButton || bGoingToSetText)
+        if (bHasAutoCheckButton)
             AddStringItem(aVclIter.iter, u""_ustr, -1);
         aVclIter.iter->AddItem(std::make_unique<SvLBoxContextBmp>(aDummy, 
aDummy, false));
+        if (bGoingToSetText)
+            AddStringItem(aVclIter.iter, u""_ustr, aVclIter.iter->ItemCount());
         m_xTreeView->Insert(aVclIter.iter, pVclParent, TREELIST_APPEND);
         func(aVclIter, i);
 

Reply via email to