summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-01-09 22:15:26 +0100
committerLászló Németh <nemeth@numbertext.org>2019-01-10 17:27:27 +0100
commitbdb0177b550d27a541cdfc0668714b2e9ac28540 (patch)
tree85fd4edef77a3297fe389557874865af93562926 /oox/source
parent403e3c04420c4d20c77427c43df52d554d7329ff (diff)
tdf#122563 DOCX import: fix OLE size after roundtrip
Embedded XLSX spreadsheets and other OLE objects became small in Writer after a roundtrip between LibO and MSO, caused by the empty drawing path of OLE shapes. Change-Id: I4cd39d4bcd6707cc5a3b8e40dde8c6148a20cabc Reviewed-on: https://gerrit.libreoffice.org/66053 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/vml/vmlshapecontext.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshapecontext.cxx b/oox/source/vml/vmlshapecontext.cxx
index f5f4bf884e31..621f20d29895 100644
--- a/oox/source/vml/vmlshapecontext.cxx
+++ b/oox/source/vml/vmlshapecontext.cxx
@@ -240,7 +240,9 @@ ContextHandlerRef ShapeContextBase::createShapeContext( ContextHandler2Helper co
case VML_TOKEN( group ):
return new GroupShapeContext( rParent, rShapes.createShape< GroupShape >(), rAttribs );
case VML_TOKEN( shape ):
- if (rAttribs.hasAttribute(XML_path))
+ if (rAttribs.hasAttribute(XML_path) &&
+ // tdf#122563 skip in the case of empty path
+ !rAttribs.getString(XML_path, "").isEmpty())
return new ShapeContext( rParent, rShapes.createShape< BezierShape >(), rAttribs );
else
return new ShapeContext( rParent, rShapes.createShape< ComplexShape >(), rAttribs );