tdf#163484 Treeview not maximized in the StyleList
regression from
commit 7f42f031ed
Author: Noel Grandin <noel.grandin@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.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
parent
5cee433ef2
commit
a61fa94f70
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue