Created attachment 172156 [details]
Document to reproduce the error
Open attached document and save it in docx-format. Open the saved file, you can use LibreOffice or Word. Notice the contour is missing.
Open the saved file in editor and look at the v:shape element. It is missing the wrapcoords attribute.
BTW, I wonder, why it is not saved with mc:AlternateContent. I have expected a w:drawing > w:wrapTight > wp:wrapPolygon and a:custGeom in the a:graphic part in addition to a fallback with v:shape.
CONFIRMED on Ubuntu 18.04 LTS and LibreOffice 22.214.171.124.alpha0+
Version: 126.96.36.199.alpha0+ / LibreOffice Community
Build ID: 27911b0455d8dcc08a0702372492a6ce00250cb7
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-04-12_15:34:11
I'll work on it and fix it together with the other wrap problems in DocxSdrExport::startDMLAnchorInline.
Exporting to DML was excluded in bug 75254. The reason for the exclusion does no longer exist. So I will remove the restriction and then enable generating a wrap polygon for polygons too.
Exporting to DML would convert the shape to a custom-shape on reopening. If it is only exported to VML, then it will become a polypolygon-shape on reopening. The user can edit the points in a polypolygon-shape. That is not possible for a custom-shape. After discussing the problem on the dev-mailinglist , I agree with Miklos, that users might see it as regression, if point editing is no longer possible.
So the wrong wrap has to be solved in VML export. But that is currently out of scope for me. Therefore 'Assignee' back to default.
The request to implement point editing for custom-shapes is in bug 144041.