svx/source/tbxctrls/StylesPreviewWindow.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 7920c94ed85c648bc301e1d32171ffa20d056083
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Jun 24 12:36:19 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Jun 24 15:15:04 2025 +0200

    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.gran...@collabora.co.uk>

diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx 
b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index c8f47b813ee7..b25740698dae 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -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

Reply via email to