Bug 142362 - FILESAVE DOCX polygon with contour wrap is missing wrap polygon
Summary: FILESAVE DOCX polygon with contour wrap is missing wrap polygon
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shape-ODF-OOXML-export
  Show dependency treegraph
 
Reported: 2021-05-18 22:11 UTC by Regina Henschel
Modified: 2024-11-25 15:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Document to reproduce the error (14.47 KB, application/vnd.oasis.opendocument.text)
2021-05-18 22:11 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
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+
Comment 6 Buovjaga 2024-11-25 15:29:27 UTC
Still repro.

Arch Linux 64-bit
Version: 25.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: afa42fcd26d9d8677b246fcc4485a11c50d5d67d
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 25 November 2024