[Libreoffice-bugs] [Bug 143860] New: FILESAVE DOCX non-primitive custom shape without handle is exported as rect
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 13 19:55:26 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=143860
Bug ID: 143860
Summary: FILESAVE DOCX non-primitive custom shape without
handle is exported as rect
Product: LibreOffice
Version: 7.3.0.0 alpha0+ Master
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Keywords: regression
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rb.henschel at t-online.de
Created attachment 174263
--> https://bugs.documentfoundation.org/attachment.cgi?id=174263&action=edit
File to reproduce the problem
Open attached file. Both shapes are of type "non-primitive". The curved arrow
(left) has no handles, the sinus curve (right) has handles.
Save the file as docx and reopen it. The curved arrow has become a rectangle.
It was OK in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2a7e64da7f385de8dbba1802530e251cf29259fb
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
The direct error is in
https://opengrok.libreoffice.org/xref/core/oox/source/export/DMLPresetShapeExport.cxx?r=e190196f#218
The shape has no handles and so GetOOXMLPresetGeometry() is called, which
returns the preset type "rect" which in turn is written.
But I think, the logic in part after
https://opengrok.libreoffice.org/xref/core/oox/source/export/shapes.cxx?r=b33634a5#822
needs a rework in general. The current structure is quite confusing.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210813/86580626/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list