sfx2/source/dialog/StyleList.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a0f024b43217ea5fbf932bb36683966b7334711d Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Oct 18 08:58:14 2024 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Oct 21 09:57:53 2024 +0200 a little more natural to unconditional iterate after use Change-Id: Iac0adfdc9344b5c25736dbec151bae20d14b20fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175119 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/sfx2/source/dialog/StyleList.cxx b/sfx2/source/dialog/StyleList.cxx index 775ebc8db551..3d133d831efc 100644 --- a/sfx2/source/dialog/StyleList.cxx +++ b/sfx2/source/dialog/StyleList.cxx @@ -793,10 +793,9 @@ static void FillBox_Impl(weld::TreeView& rBox, StyleTreeArr_Impl& rTreeArray, rBox.iter_children(*xChildParentIter); for (size_t i = 0; i < rTreeArray.size(); ++i) { - if (i != 0) - rBox.iter_next_sibling(*xChildParentIter); FillBox_Impl(rBox, rTreeArray[i]->getChildren(), eStyleFamily, xChildParentIter.get(), blcl_insert, pViewShell, pStyleSheetPool); + rBox.iter_next_sibling(*xChildParentIter); } }