sw/source/core/layout/paintfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8c7df906e344f2e7ececcac9d151face81190aef
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Feb 27 11:27:33 2025 +0500
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Feb 27 14:12:09 2025 +0100

    Fix Windows build with warnings enabled
    
      C:\lo      C:\lo    
    after commit e5eec842b0c61c9c91a8f836661d6885c9c236a8 "enable spotlight
    subset in kit mode", 2024-12-16. Not required in master, where the fix
    was incorporated right in the ported original change, because master
    buildbots luckily have warnings enabled.
    
    Change-Id: I654d667d23665ba00d88fa7a11cd460b270b36a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182268
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index 626cd81426fd..d5bd4bd86251 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4586,7 +4586,7 @@ void SwTextFrame::PaintParagraphStylesHighlighting() const
     OUString sStyleName = pColl->GetName();
 
     Color nStyleColor;
-    int nStyleNumber;
+    int nStyleNumber(-1);
 
     bool bSpotlightStyle;
     if (comphelper::LibreOfficeKit::isActive())

Reply via email to