Bug 136881 - FILESAVE DOCX Shape property "Word Wrap text in shape" not saved correctly
Summary: FILESAVE DOCX Shape property "Word Wrap text in shape" not saved correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
: 138952 (view as bug list)
Depends on:
Blocks: DOCX-Textbox
  Show dependency treegraph
 
Reported: 2020-09-18 13:12 UTC by NISZ LibreOffice Team
Modified: 2022-07-12 05:44 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (12.67 KB, application/vnd.oasis.opendocument.text)
2020-09-18 13:12 UTC, NISZ LibreOffice Team
Details
The original file saved by Writer as DOCX (5.32 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-09-18 13:16 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and exported document side by side in Word and Writer (141.52 KB, image/png)
2020-09-18 13:16 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 2020-09-18 13:12:21 UTC
Created attachment 165662 [details]
Example file from Writer

Writer shapes have the property Word Wrap text in shape but this is saved to DOCX always as true even if it was turned off.

Steps to reproduce:
    1. Insert – Shape – Basic Shapes - Rectangle
    2. Double click on it and enter long text that would not fit in one line into the shape
    3. Format – Text box and shape – Text Attributes
    4. Turn OFF the  Word Wrap text in shape so the long text will flow out of the shape
    5. Save as docx and reload / open in Word

Actual results:
Long text is wrapped.

Expected results:
Long text is not wrapped.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 8c18cd6823ddf4ef5ba67801a84cee26c9b5a9a6
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Also in: 
Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Verzió: 6.0.0.3
Build az.: 64a0f66915f38c6217de274f0aa8e15618924765
CPU szálak: 4; OS: Windows 6.3; Felületmegjelenítés: alapértelmezett; 
Területi beállítások: hu-HU (hu_HU); Calc: CL

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: hu-HU (hu_HU)

Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0

In 4.2 and before these were exported as VML shapes, with the same problem.
Comment 1 NISZ LibreOffice Team 2020-09-18 13:16:08 UTC
Created attachment 165663 [details]
The original file saved by Writer as DOCX
Comment 2 NISZ LibreOffice Team 2020-09-18 13:16:25 UTC
Created attachment 165664 [details]
Screenshot of the original and exported document side by side in Word and Writer
Comment 3 Timur 2020-09-29 12:11:12 UTC
Great report. Repro 7.1+.
Just to add, LO opens LO-saved DOCX similar to MSO, as expected.
Comment 4 NISZ LibreOffice Team 2021-08-09 07:23:11 UTC
This is how it works from Word:

												<wps:bodyPr wrap="none"
          													lIns="90000"
          													tIns="45000"
          													rIns="90000"
          													bIns="45000"
          													anchor="ctr">
													<a:noAutofit/>
												</wps:bodyPr>

Writer does not save the wrap="none" attribute.
Comment 5 NISZ LibreOffice Team 2021-09-16 12:20:00 UTC
*** Bug 138952 has been marked as a duplicate of this bug. ***