oox/source/export/shapes.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit d281d44f6a308b643fc18ad3efa6103589ada17d Author: Noel Grandin <[email protected]> AuthorDate: Thu Nov 20 15:04:43 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Fri Nov 21 18:28:21 2025 +0100 mso-test: invalid prstDash enum value found by converting tdf116793-7.odp to pptx and running officeotron on the output pptx does not support this border-line-style, and empty is not valid, so just pick something close. Change-Id: I72c299ad79c8d6f5d40ab7d21cda438b5c58134b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194271 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index e200803ba52b..5f30f3e8b632 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -2570,7 +2570,13 @@ void ShapeExport::WriteBorderLine(const sal_Int32 xml_line_element, const Border case ::table::BorderLineStyle::DASH_DOT_DOT: sBorderStyle = "sysDashDotDot"; break; + default: + // There is no equivalent so pick something else, since we cannot have empty. + // There are very few default styles for pptx. + sBorderStyle = "solid"; + break; } + assert(!sBorderStyle.isEmpty() && "empty is not a valid value for PPTX"); mpFS->singleElementNS(XML_a, XML_prstDash, XML_val, sBorderStyle); mpFS->endElementNS(XML_a, xml_line_element); }
