Apache OpenOffice (AOO) Bugzilla – Issue 121769
shape with custGeom looses path
Last modified: 2013-02-18 10:03:33 UTC
Created attachment 80276 [details] filetype:.pptx 2010, one slide, custGeom with moveTo and arcTo The attached document contains one slide. On the slide is one shape. It is not a preset shape, but a shape with a self defined path. When you open the document in AOO, the shape is there, but no path is shown. The document is valid according "Open XML SDK 2.0 Productivity Tool for Microsoft Office" and opens fine in PowerPoint 2013 and LibreOffice 4.0. The path is defined as <p:spPr> <a:xfrm> <a:off x="1080000" y="720000" /> <a:ext cx="2160000" cy="2160000" /> </a:xfrm> <a:custGeom> <a:pathLst> <a:path w="6" h="6"> <a:moveTo> <a:pt x="3" y="3" /> </a:moveTo> <a:arcTo hR="3" wR="3" stAng="1800000" swAng="2700000" /> <a:close /> </a:path> </a:pathLst> </a:custGeom> <a:ln> <a:solidFill> <a:srgbClr val="FF0000" /> </a:solidFill> </a:ln> </p:spPr>
Created attachment 80285 [details] Opened .pptx in LO4.0 and saved as .odp The case "arcTo" has a "TODO" in main/oox/source/drawingml/customshapegeometry.cxx (ca line 1070). When I open the attached file in LO 4.0 and save it there as .odp in mode "1.2 extended", LO writes <draw:enhanced-geometry draw:mirror-horizontal="false" draw:mirror-vertical="false" svg:viewBox="0 0 0 0" draw:type="ooxml-non-primitive" draw:enhanced-path="M 3 3 Z N" drawooo:enhanced-path="M 3 3 G 3 3 ?f0 ?f1 Z N"> To do this, LO has the additional constant const short ARCANGLETO = 17 in EnhancedCustomShapeSegmentCommand which likely corresponds to the path command "G". In consequence of this, the file saved by LO does not show the path, when opened in AOO.
Hi Armin, I think this needs a discussion on dev.