tdf#166932 UpdateStylesList followup

where I forgot to add an else statement. spotted by caolanm

Change-Id: Ic228f081b1f07d4d7491c2ee5ecf7f46e64d4865
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186885
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2025-06-24 15:15:04 +02:00
parent 380bd856d1
commit 7920c94ed8
@@ -318,6 +318,7 @@ void StyleItemController::DrawEntry(vcl::RenderContext& rRenderContext,
SfxStyleSheetBase* pStyle = nullptr;
if (pStyleHint)
pStyle = pStyleHint;
else
{
pStyle = pPool->First(m_eStyleFamily);
while (pStyle && pStyle->GetName() != m_aStyleName.first