vcl/qa/cppunit/complextext.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f0cd2794e7588f3af9d3e1b816c883f4a24c4311
Author:     Mike Kaganski <[email protected]>
AuthorDate: Tue Mar 3 08:16:53 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Tue Mar 3 09:13:57 2026 +0100

    Fix Windows build
    
    After commit 9e67072a21bdbdfa9dc8da826654bf6fb4ec6116
    (tdf#153368: Support optical size for variable fonts, part 1,
    2023-03-02).
    
     C:/lo/core/vcl/qa/cppunit/complextext.cxx(885): error C3861:
     'addFont': identifier not found
    
    If the test is expected to run on Windows, the definition of
    `addFont` must be made available there.
    
    Change-Id: I184f0dc1cc6363faba4c2ca147a812ddd4a98c2b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200872
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index 68ba2359f3d0..0fd89351ba16 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -879,6 +879,7 @@ CPPUNIT_TEST_FIXTURE(VclComplexTextTest, testTdf163761)
 CPPUNIT_TEST_FIXTURE(VclComplexTextTest, testOpticalSizing)
 {
 #if HAVE_MORE_FONTS
+#if !defined _WIN32
     ScopedVclPtrInstance<VirtualDevice> pOutDev;
     pOutDev->SetMapMode(MapMode(MapUnit::MapPoint));
 
@@ -920,6 +921,7 @@ CPPUNIT_TEST_FIXTURE(VclComplexTextTest, testOpticalSizing)
     CPPUNIT_ASSERT(aGlyphs1.at(0) != aGlyphs2.at(0));
     CPPUNIT_ASSERT(aGlyphs1.at(1) != aGlyphs2.at(1));
 #endif
+#endif
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to