summaryrefslogtreecommitdiffstats
path: root/oox/source/export/drawingml.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/export/drawingml.cxx')
-rw-r--r--oox/source/export/drawingml.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index aaad66b4d083..60a5cdd62d7e 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1263,7 +1263,8 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet, Referenc
mpFS->startElementNS( XML_a, XML_ln,
XML_cap, cap,
XML_w, sax_fastparser::UseIf(OString::number(nEmuLineWidth),
- nLineWidth == 0 || (nLineWidth > 1 && nStyleLineWidth != nLineWidth)) );
+ nLineWidth == 0 || GetDocumentType() == DOCUMENT_XLSX // tdf#119565 LO doesn't export the actual theme.xml in XLSX.
+ || (nLineWidth > 1 && nStyleLineWidth != nLineWidth)));
if( bColorSet )
{
@@ -1431,7 +1432,9 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet, Referenc
{
LineJoint eLineJoint = mAny.get<LineJoint>();
- if( aStyleLineJoint == LineJoint_NONE || aStyleLineJoint != eLineJoint )
+ // tdf#119565 LO doesn't export the actual theme.xml in XLSX.
+ if (aStyleLineJoint == LineJoint_NONE || GetDocumentType() == DOCUMENT_XLSX
+ || aStyleLineJoint != eLineJoint)
{
// style-defined line joint does not exist, or is different from the shape's joint
switch( eLineJoint )