sc/source/filter/excel/xestyle.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 35eba382eed6e45ad717ce72a2a069b5b4e16bf6 Author: Karthik Godha <[email protected]> AuthorDate: Thu Feb 5 14:21:34 2026 +0530 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Feb 12 16:51:42 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 Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199070 diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 4fce1d001825..fbd849d0635a 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -897,6 +897,8 @@ vcl::Font XclExpFontHelper::GetFontFromItemSet( const XclExpRoot& rRoot, const S // fill the font object vcl::Font aFont; ScPatternAttr::fillFontOnly(aFont, rItemSet, nullptr, nullptr, nullptr, nScScript); + if (aFont.GetFamilyName().isEmpty()) + aFont.SetFamilyName(rRoot.GetFontBuffer().GetAppFontData().maName); return aFont; }
