sc/source/filter/excel/xestyle.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 582ccfd0ad277acdcc8ecb28ccbca48c0ed8af89
Author:     Karthik Godha <[email protected]>
AuthorDate: Thu Feb 5 14:21:34 2026 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Feb 6 13:30:39 2026 +0100

    ODS -> XLSX: Fix empty font-name in export
    
    This is related to 8e285dd22fed82b7c4554d336c03cd7b6bc0ce4d. Use the
    defaulat font for empty text cells.
    
    Change-Id: Ia1613bf104f75895541c7a7ff8085fd8d5e7b67a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198723
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sc/source/filter/excel/xestyle.cxx 
b/sc/source/filter/excel/xestyle.cxx
index 9a0706d6f7bf..14ad6871372a 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -898,6 +898,8 @@ vcl::Font XclExpFontHelper::GetFontFromItemSet( const 
XclExpRoot& rRoot, const S
     // fill the font object
     vcl::Font aFont;
     ScPatternAttr::fillFontOnly(aFont, rItemSet, nullptr, nullptr, nullptr, 
nullptr, nScScript);
+    if (aFont.GetFamilyName().isEmpty())
+        aFont.SetFamilyName(rRoot.GetFontBuffer().GetAppFontData().maName);
     return aFont;
 }
 

Reply via email to