Bug 142362

Summary: FILESAVE DOCX polygon with contour wrap is missing wrap polygon
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: nagharshita16
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=75254
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 136358    
Attachments: Document to reproduce the error

Description Regina Henschel 2021-05-18 22:11:22 UTC
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.
Comment 1 Harshita Nag 2021-05-19 02:51:15 UTC
CONFIRMED on Ubuntu 18.04 LTS and LibreOffice 7.2.0.0.alpha0+


Version: 7.2.0.0.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
Calc: threaded
Comment 2 Regina Henschel 2021-07-19 13:53:47 UTC
I'll work on it and fix it together with the other wrap problems in DocxSdrExport::startDMLAnchorInline.
Comment 3 Regina Henschel 2021-08-23 20:52:06 UTC
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.
Comment 4 Regina Henschel 2021-08-25 19:45:17 UTC
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 [1], I agree with Miklos, that users might see it as regression, if point editing is no longer possible.
[1] https://lists.freedesktop.org/archives/libreoffice/2021-August/087781.html

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.
Comment 5 Justin L 2023-05-30 17:41:07 UTC
repro 7.6+