Bug 126777 - Frame + text box becomes corrupted when saved as DOCX
Summary: Frame + text box becomes corrupted when saved as DOCX
Status: RESOLVED DUPLICATE of bug 121509
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Attila Bakos (NISZ)
Keywords: filter:docx
Depends on:
Blocks: DOCX-Textbox DOCX-Corrupted
  Show dependency treegraph
Reported: 2019-08-08 16:32 UTC by Aron Budea
Modified: 2021-07-01 13:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Sample DOCX (corrupted) (5.03 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-08-08 16:32 UTC, Aron Budea

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2019-08-08 16:32:33 UTC
Created attachment 153240 [details]
Sample DOCX (corrupted)

This is somewhat similar to bug 126669, except the file was saved as DOCX and reloaded between inserting the frame and the text box.

- Add a frame to an empty document.
- Save it as DOCX, and reopen the document.
- Add a text box inside the frame, and at least one character in the text box so it persists.
- Save it again (as DOCX), and open the file in Word.

=> Word refuses to open the file (details: Unspecified error).

Attaching a corrupted sample DOCX.

Observed using LO & / Windows 7.
Comment 1 Aron Budea 2019-08-08 16:36:40 UTC
(In reply to Aron Budea from comment #0)
> - Add a frame to an empty document.
Note that if the frame is added to the top of the text area, it will trigger bug 117692, so if you insert the frame using the dialog, move it down a bit, or insert it interactively.
Comment 2 Durgapriyanka 2019-08-09 21:30:19 UTC
Thank you for reporting the bug. I can confirm the bug present in

Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded


LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 3 NISZ LibreOffice Team 2020-11-30 12:24:12 UTC
Saving a Writer-made new frame to docx converts it into a textbox (but why...).

Word on the other hand does not allow embedding a textbox into a textbox, so it's no surprise it cannot read a similar construct made by Writer.
Comment 4 Attila Bakos (NISZ) 2021-07-01 13:58:06 UTC

*** This bug has been marked as a duplicate of bug 121509 ***