https://bugs.documentfoundation.org/show_bug.cgi?id=148342
Bug ID: 148342
Summary: FILESAVE DOCX Shape 'puzzle' is exported as rectangle
Product: LibreOffice
Version: 7.4.0.0 alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Start a text document and insert a shape 'Puzzle'. Save it as DOCX and reopen
the saved file. The shape has become a rectangle.
The error is in ShapeExport::WriteCustomShape(). The condition for using
DMLPresetShapeExporter is wrong.
At that time it is already known, that the shape needs to be exported as
custGeom. But DMLPresetShapeExporter is used anyway. And there
msfilter::util::GetOOXMLPresetGeometry("puzzle") is called. That method has no
result "fail" but returns type "rect" in case the shape type does not exist.
Besides the wrong condition, I think it should be considered to let
GetOOXMLPresetGeometry return an empty string in case no preset is found, so
that the caller can detect this case and react appropriate.
--
You are receiving this mail because:
You are the assignee for the bug.