Bug 121512 - FILESAVE DOC Shape is malformed and separated from TextBox after export
Summary: FILESAVE DOC Shape is malformed and separated from TextBox after export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, filter:doc, implementationError
Depends on:
Blocks: DOC-Shapes
  Show dependency treegraph
 
Reported: 2018-11-19 10:04 UTC by NISZ LibreOffice Team
Modified: 2023-09-11 15:09 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
The original file saved by Writer (9.26 KB, application/binary)
2018-11-19 10:05 UTC, NISZ LibreOffice Team
Details
Example file from Writer – corrupted (17.50 KB, application/msword)
2018-11-19 10:05 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document in Writer (78.78 KB, image/png)
2018-11-19 10:06 UTC, NISZ LibreOffice Team
Details
Screenshot of the exported document in Word (68.11 KB, image/png)
2018-11-19 10:07 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2018-11-19 10:04:44 UTC
Description:
If the document contains a shape with textbox, the .doc file will be corrupted. The opening process of the MS Word results malformed shape. Shape and textbox will be separated.

Steps to Reproduce:
1. Insert a shape.
2. Add a textbox to the shape. Write something in the textbox. (Shape-Textbox.odt, Shape-TextBox.PNG)
3. Save the document into .doc format. (Shape-Textbox.doc)
4. Open the .doc file with MS Word. (Shape-Textbox-Export.PNG)

Actual Results:
The shape appear beside the frame. The shape is malformed. The MS Word appears error message.

Expected Results:
The shape remains in the original place. The width and height of the shape does not modify. The .doc file is not corrupted.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2018-11-19 10:05:21 UTC
Created attachment 146748 [details]
The original file saved by Writer
Comment 2 NISZ LibreOffice Team 2018-11-19 10:05:44 UTC
Created attachment 146749 [details]
Example file from Writer – corrupted
Comment 3 NISZ LibreOffice Team 2018-11-19 10:06:43 UTC
Created attachment 146750 [details]
Screenshot of the original document in Writer
Comment 4 NISZ LibreOffice Team 2018-11-19 10:07:00 UTC
Created attachment 146751 [details]
Screenshot of the exported document in Word
Comment 5 raal 2018-11-22 12:58:48 UTC
Confirm with .2. Works in 4.4 - shape is not perfect, but no error in Word. Marking as regression.
Comment 6 raal 2018-11-23 14:40:51 UTC
bibisected to range
http://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=67be577f163831e460e19aee958bdcf7187b8a56..22ca3bf1b9dedec65a57ac70a124bf69cd242e0e

This seems to have begun at the below commit.
Adding Cc: to Miklos Vajna; Could you possibly take a look at this one? Thanks

author	Miklos Vajna <vmiklos@collabora.co.uk>	2014-10-04 19:37:55 +0200
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2014-10-04 20:18:01 +0200
commit 9835a5823e0f559aabbc0e15ea126c82229c4bc7 (patch)
tree 12b77a17bf437e248ef02cc06634ab1dc458a99c
parent ad5e8b30ac66a00d0110fcdaf4d064181247585b (diff)
sw textboxes: reimplement ODF import/export
Comment 7 Miklos Vajna 2019-01-03 08:33:22 UTC
The DOC export is simply not aware of the textbox feature. The above commit is just the first one that starts to handle the ODF markup of the bugdoc (for a short period of time, there was an older ODF markup for this feature), uncovering an already existing problem.

So this is not a regression, simply support for the textbox feature has to be implemented in the DOC filter. Although of course: yes, this is a problem, and yes, it would make sense to address it.
Comment 8 QA Administrators 2021-01-03 03:37:26 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2023-01-04 03:19:20 UTC Comment hidden (obsolete, spam)
Comment 10 Justin L 2023-09-11 15:09:02 UTC
repro 24.2+