Issue 121769 - shape with custGeom looses path
Summary: shape with custGeom looses path
Alias: None
Product: Impress
Classification: Application
Component: open-import (show other issues)
Version: 4.0.0-dev
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2013-02-13 21:48 UTC by Regina Henschel
Modified: 2013-02-18 10:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

filetype:.pptx 2010, one slide, custGeom with moveTo and arcTo (14.03 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2013-02-13 21:48 UTC, Regina Henschel
no flags Details
Opened .pptx in LO4.0 and saved as .odp (9.63 KB, application/vnd.oasis.opendocument.presentation)
2013-02-14 20:25 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2013-02-13 21:48:51 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
       <a:off x="1080000" y="720000" />
       <a:ext cx="2160000" cy="2160000" />
          <a:path w="6" h="6">
                <a:pt x="3" y="3" />
             <a:arcTo hR="3" wR="3" stAng="1800000" swAng="2700000" />
             <a:close />
           <a:srgbClr val="FF0000" />
Comment 1 Regina Henschel 2013-02-14 20:25:14 UTC
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
 svg:viewBox="0 0 0 0"
 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.
Comment 2 Regina Henschel 2013-02-14 20:27:55 UTC
Hi Armin, I think this needs a discussion on dev.