Bug 121513 - FILESAVE DOCX TextBox in Shape is modified after export
Summary: FILESAVE DOCX TextBox in Shape is modified after export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Textbox
  Show dependency treegraph
 
Reported: 2018-11-19 10:11 UTC by NISZ LibreOffice Team
Modified: 2022-09-17 03:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The original file saved by Writer (9.26 KB, application/vnd.oasis.opendocument.text)
2018-11-19 10:12 UTC, NISZ LibreOffice Team
Details
Example file from Writer – with moved and modified textbox (14.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-19 10:12 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document in Writer (77.21 KB, image/png)
2018-11-19 10:13 UTC, NISZ LibreOffice Team
Details
Screenshot of the exported document in Word (57.64 KB, image/png)
2018-11-19 10:13 UTC, NISZ LibreOffice Team
Details
The example file opened in Writer and its exported version in Word (79.21 KB, image/png)
2020-09-09 14:46 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:11:36 UTC
Description:
The textbox in the shape fills the area of the shape after saving into .docx format.

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 .docx format. (Shape-Textbox.docx)
4. Open the .docx file with MS Word. (Shape-Textbox-Export.PNG)

Actual Results:
The textbox in the shape grows to the borders of the shape.

Expected Results:
The size and the position of the textbox does not change.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2018-11-19 10:12:16 UTC
Created attachment 146752 [details]
The original file saved by Writer
Comment 2 NISZ LibreOffice Team 2018-11-19 10:12:42 UTC
Created attachment 146753 [details]
Example file from Writer – with moved and modified textbox
Comment 3 NISZ LibreOffice Team 2018-11-19 10:13:09 UTC
Created attachment 146754 [details]
Screenshot of the original document in Writer
Comment 4 NISZ LibreOffice Team 2018-11-19 10:13:29 UTC
Created attachment 146755 [details]
Screenshot of the exported document in Word
Comment 5 Durgapriyanka 2018-12-06 17:53:03 UTC
Thank you for reporting the bug. I can confirm that the bug is present in

Version: 6.1.3.2
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group threaded
Comment 6 Xisco Faulí 2018-12-10 17:42:06 UTC
Also reproduced in

Version: 5.4.0.0.alpha1+
Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

in previous versions of LibreOffice, even the textbox inside the shape wasn't imported...
Comment 7 NISZ LibreOffice Team 2020-09-09 14:46:42 UTC
Created attachment 165325 [details]
The example file opened in Writer and its exported version in Word

The text box dialog shows 0 cm margin in all directions for the default textbox in the shape, which is not true. 
But these values are then correctly exported to docx.
Comment 8 NISZ LibreOffice Team 2020-09-16 13:12:37 UTC
After looking into this a bit more, it looks like the dialog always sets the shapes text properties.

This should be different if a textframe is added to the shape with context menu - Add Text Box. This textframe instantly adds about 5 pt margin in all directions and this is not reflected in the dialog.
Also any changes made in the dialog do not apply to the textframe, but the user would probably want that.

If a docx file is opened the same happens: imported textframe properties are displayed in the dialog (see the example file in bug #135569), but cannot be changed since they are applied to the shape and not its textframe.
Comment 9 QA Administrators 2022-09-17 03:47:45 UTC Comment hidden (spam)