https://bugs.documentfoundation.org/show_bug.cgi?id=152913
Bug ID: 152913
Summary: FILESAVE DOCX handles of Fontwork shape wrong in VML
Product: LibreOffice
Version: 7.6.0.0 alpha0+ Master
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Blocks: 136406
Created attachment 184516
--> https://bugs.documentfoundation.org/attachment.cgi?id=184516&action=edit
File with "Slant Up" Fontwork shape.
Open attached document and save it to docx format. Open the saved file in Word.
Notice that the handle is at a wrong position and is not moveable in Word.
To see how it should work, switch to a different shape type in the "WordArt"
menu in Word and then back to type "Slant-Up".
Examining the docx file you will see, that the fontwork shape is exported as
VML shape.
The produced VML markup has these errors:
(1) The y value in the position attribute of the handle uses a reference to a
formula (@) instead of a reference to an adjustment value (#). Referencing a
formula is no syntactical error, but it determines that the handle is fix in
that direction. Only the reference to an adjust value gives a moveable handle.
https://learn.microsoft.com/en-us/windows/win32/vml/position-attribute--h--vml
(2) The x value in the position attribute of the handle uses the constant 0.
That is not evaluated in Word but treated as "center". Instead the key
"topLeft" has to be used.
(3) The <v:shape> element misses the adj attribute, which determines via the #
reference the position of the handle.
The fact, that this shape is not exported as DrawingML but to VML, is an
additional, but different error. In case a Fontwork shape has a bitmap fill, it
has to be exported to VML anyway, because in current Word the "abc
Transformation" is not able to use bitmap fill. So the problem will be still
relevant after this special shape will be correctly exported as DrawingML.
The erroneous export to VML has its root in the HasTextBoxContent method in
https://opengrok.libreoffice.org/xref/core/filter/source/msfilter/util.cxx?r=6b252b6a#1220
and its use.
The VML export is mixed with the export to binary format. I have currently no
idea where the errors come in. Tips are appreciated.
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=136406
[Bug 136406] [META] OOXML VML shape related issues
--
You are receiving this mail because:
You are the assignee for the bug.