sc/source/filter/excel/xestyle.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 8408cd6e851ae3a6ede942b492a59e7033123a15 Author: Karthik Godha <[email protected]> AuthorDate: Thu Feb 5 14:21:34 2026 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Tue Feb 10 12:37:54 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]> (cherry picked from commit 582ccfd0ad277acdcc8ecb28ccbca48c0ed8af89) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198944 Tested-by: Jenkins diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index e0e4348cfbed..f0f6b6802fa3 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; }
