Created attachment 124627 [details]
test file for reproducing (and illustrating) problem
LO 188.8.131.52 Windows 7
To reproduce the problem:
1. Draw an 'arc'
2. Save in .docx format
3. The arc will be converted to a filled shape, with the "arc" being lost.
1. Saved as an arc, without fill.
Attached document gives a test figure in .odt, and also shows what happens when saved as .docx
I can confirm with Version: 184.108.40.206.alpha0+
Build ID: 170a473597534cf59887b1d817538322e7039862
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-04-19_00:41:06
The arc will be a filled circle in both Word and Writer, so most likely an export issue. Adding Andras who's fixed many of these DrawingML issues recently.
.doc format works as expect.
Is this another case like Bug 96052 where it needs to be put on a whitelist?
Version: 220.127.116.11.alpha0+ (x64)
Build ID: 7aa2b5a041df8e71a435cccbc79ee13799ec9138
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new;
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-11-24_11:40:27
Locale: nl-NL (nl_NL); Calc: CL
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
Created attachment 138314 [details]
bug doc exported to .docx w/ Word 2013
Still repo on Version: 18.104.22.168.alpha0+ (x64)
Build ID: eff70347190a6642fd62a9e0b20e4366c39fbc7a
Word can correctly import and export arcs. See attachment
Confirming that the initial bug report is still valid -- both for Word 2007-2019 and Office Open XML Text (.docx).
No problems saving to .odt, .doc, or .pdf
Version: 22.214.171.124 (x64)
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 4; OS: Windows 10.0; UI render: GL;
The "arc" and the "circleCut" are not custom-shapes, but legacy shapes from the toolbar "ovals" or single commands. In ODF they are not draw:custom-shape elements but draw:circle or draw:ellipse elements. The OOXML format has nothing, which corresponds to this kind of shapes. Therefore export of them to OOXML will always only be a workaround.
We have several options:
(A) Export "arc" as prstGeom with preset type "arc". The import of such shape works.
That approach has some downsides.
* Saving such OOXML shape in ODF uses the command G, which is not yet in the standard and requires a private namespace. The ODF 1.2 conform path does not result in an "arc" geometry.
* The current formulas in ODF use 'logwidth' and 'logheight', which MS does not interpret.
* The legacy "arc" is stored as draw:circle or draw:ellipse in ODF, not as draw:custom-shape. But OOXML preset shapes are always imported as custom-shapes.
* The export of OOXML reset shape type "arc" to doc does not work in current LibreOffice.
* Another difference is, that the legacy "arc" does not allow filling, but the OOXML preset shape "arc" allows filling, resulting in a sector.
(B) Export "arc" as custGeom in OOXML format including adjustment handles. The geometry needs to be defined. The geometry can be defined so, that it is never filled. Problem are roundtrips, because there exists no generic export from ODF formula syntax to OOXML formulas, because ODF formulas a more complex. It would be needed to find a way, to write application information so, that they are not removed by MS Office, to be able to detect, that this shape comes from an "arc".
(C) Export "arc" as custGeom in OOXML format without adjustment handles, with command "arcTo". MS Office uses this, if it opens an ODF file with draw:circle or draw:ellipse shape. That results in command G, if the file is resaved to ODF by LO. Same roundtrip problems as in (B).
(D) Export "arc" as custGeom in OOXML format without adjustment handles with Bézier-curves. Those exist in OOXML and ODF. Same roundtrip problems as in (B).
Export in VML format is no option. VML is outdated. Current MS Office supports it only partly and only in compatibility mode. And roundtrip will not work, because export of VML inside OOXML is buggy in LibreOffice.
I think, that it was no good idea, to have legacy shapes inside the custom-shape floaters at all. They behave too different.
We might consider to add a shape, that is equal to that shape we use on import of preset shape type "arc" from OOXML. Only that I would use an ODF 1.2 conform enhanced-path in addition to the path with command G. The command G will be in ODF 1.4 (I estimate in five years), not in ODF 1.3. An additional problem is the export to doc, which currently does not work for an imported OOXML preset shape of type "arc". For our own shape, we might use a similar export to doc format as for the legacy shapes. All together a large task.
I'm testing a solution, where the arc is exported as prstGeom 'arc'. That will be imported as 'ooxml-arc' on round-trip, same as an arc, that is original drawn in Word.
Regina Henschel committed a patch related to this issue.
It has been pushed to "master":
tdf#99497 CircleKind ARC, CUT, SECTION to OOXML arc, chord, pie
It will be available in 6.4.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I see the fix in Version: 126.96.36.199.alpha0+ (x64)
Build ID: 01837a85004a6f891a09c0a63ed7eff75d634827
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win;
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-09-01_00:07:05
Locale: en-US (en_US); UI-Language: en-US