vcl/source/gdi/embeddedfontsafdko.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5bfc1fb3f2fb75aff610176582e60c4edb6f8710
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Nov 6 09:52:25 2025 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Thu Nov 6 11:17:55 2025 +0100

    Fix non-HAVE_FEATURE_AFDKO builds
    
    ...like the Emscripten one, which started to fail with
    
    > vcl/source/gdi/embeddedfontsafdko.cxx:387:12: error: use of undeclared 
identifier 'ret'
    >   387 |     return ret;
    >       |            ^~~
    
    after 14cf344bd43ec7bd3569ba025ceb95dd7a69d59a "throw exception on afdko 
error"
    
    Change-Id: Ib5ccd7d5b25ae3fa6c00577051cf7c8c436381f8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193518
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/vcl/source/gdi/embeddedfontsafdko.cxx 
b/vcl/source/gdi/embeddedfontsafdko.cxx
index c8a8dc490a0d..1303a6dae3eb 100644
--- a/vcl/source/gdi/embeddedfontsafdko.cxx
+++ b/vcl/source/gdi/embeddedfontsafdko.cxx
@@ -377,14 +377,15 @@ bool EmbeddedFontsManager::makeotf(const OUString& 
srcFontUrl, const OUString& d
     }
 
     cbFree(cbctx);
+    return ret;
 #else
     (void)srcFontUrl;
     (void)destFileUrl;
     (void)fontMenuNameDBUrl;
     (void)charMapUrl;
     (void)featuresUrl;
+    return false;
 #endif
-    return ret;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */

Reply via email to