Description: Shape anchored to paragraph in a frame jumps out of the frame after saving to .docx format. Steps to Reproduce: 1. Insert a frame. 2. Insert a shape and anchored it a paragraph in the frame. (Frame-Paragraph-Shape.odt, Frame-Paragraph-Shape.PNG) 3. Save the document into .docx format. (Frame-Paragraph-Shape.docx) 4. Open the .docx file with MS Word. (Frame-Paragraph-Shape-Export.PNG) Actual Results: The shape appears beside the frame. Expected Results: The shape remains in the original place Reproducible: Always User Profile Reset: No Additional Info:
Created attachment 146734 [details] The original file saved by Writer
Created attachment 146735 [details] Example file from Writer – with the moved shape
Created attachment 146737 [details] Screenshot of the original document in Writer
Created attachment 146738 [details] Screenshot of the exported document in Word
I confirm it with Version: 6.2.3.2 (x64) Build-ID: aecc05fe267cc68dde00352a451aa867b3b546ac CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; VCL: win; Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE Calc: threaded Shape in now anchored to the paragraph outside the frame and no longer to the paragraph within the frame
If I try to insert a drawing object into a text box in Writer, I get the error message "You can't put drawing objects into a text box, callout, comment, footnote, or endnote." Which kind of object do you expect in Word, so that it can take a drawing object?
Also reproduced in Version: 5.2.0.0.alpha1+ Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; Locale: ca-ES (ca_ES.UTF-8)
*** Bug 135985 has been marked as a duplicate of this bug. ***
*** Bug 136035 has been marked as a duplicate of this bug. ***
*** Bug 139168 has been marked as a duplicate of this bug. ***
(In reply to Gabor Kelemen from comment #10) > *** Bug 139168 has been marked as a duplicate of this bug. *** Bug 139168 Comment 2 ("Gabor Kelemen") But this is not new. The frame is converted to a shape and shapes in Word cannot have other shapes anchored inside. FWIW: it looked OK in 4.2 (for LO, didn't check MSO)
(In reply to Telesto from comment #11) > FWIW: it looked OK in 4.2 (for LO, didn't check MSO) It wasn't looking great in Word after saving as DOCX in 4.2.0.4, the shape was out of place in the top left corner of the page. In Writer it looks fine in 4.2.0.4, while no shape is shown in 4.3.0.4. In between there are crashes either at start or when you try to load the generated DOCX, and also ranges where the saved DOCX is empty. Eg. the frame returns without the shape somewhere in the following range: https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=e81212315b5fe22e1005d41149a0ea1a557bf412..fe451fb94a33c914c0a7c1265c013d9704af850a
Created attachment 168444 [details] Example file Not sure if this route being option to emulate the result
*** Bug 135707 has been marked as a duplicate of this bug. ***
Attila Bakos (NISZ) committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/35732c84b05e4f6e50349796636beb01f2a09907 tdf#121509 DOCX export: fix corrupt shape anchoring in textbox It will be available in 7.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 121511 has been marked as a duplicate of this bug. ***
*** Bug 126669 has been marked as a duplicate of this bug. ***
*** Bug 126777 has been marked as a duplicate of this bug. ***
Attila Bakos (NISZ) committed a patch related to this issue. It has been pushed to "libreoffice-7-2": https://git.libreoffice.org/core/commit/68688b4ca2288ac815d1dff137177e632bbb5f9f tdf#121509 DOCX export: fix corrupt shape anchoring in textbox It will be available in 7.2.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Verified in: Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 3964e0854507b2696ae0fbe48a4fb005c779947e CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: default; VCL: win Locale: en-DK (hu_HU); UI: en-GB Calc: threaded