Bug 142525 - FILEOPEN DOCX: Text box size reduced, so text no longer fits inside
Summary: FILEOPEN DOCX: Text box size reduced, so text no longer fits inside
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: compatibilityMode12
Keywords: bibisected, bisected, regression
Depends on:
Blocks: VML-Textbox
  Show dependency treegraph
 
Reported: 2021-05-27 11:00 UTC by Justin L
Modified: 2024-05-31 21:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test77219.docx: from ooxmlexport7 (80.09 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-05-27 11:00 UTC, Justin L
Details
test compared in MSO 2016 and LO 7.2+ (145.94 KB, image/png)
2021-05-28 07:34 UTC, Timur
Details
The textbox properties in Word and Writer (87.62 KB, image/png)
2021-05-28 13:34 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2021-05-27 11:00:04 UTC
Created attachment 172390 [details]
test77219.docx: from ooxmlexport7

The top left hand box before used to show all of "John Doe
Date Of Birth:	ID:"
Now basically only "John Doe" is visible.

This stared in LO 7.2 (and backported to 7.1) with
author	Regényi Balázs on 2020-12-10 12:03:39 +0100
commit aefb6aaf6475b71668bab7e11ce51b0fdc34f299
    tdf#41466 DOCX import: fix VML v:shape/v:textbox

https://cgit.freedesktop.org/libreoffice/core/commit/?id=aefb6aaf6475b71668bab7e11ce51b0fdc34f299
Comment 1 Timur 2021-05-28 07:34:10 UTC
Created attachment 172398 [details]
test compared in MSO 2016 and LO 7.2+
Comment 2 NISZ LibreOffice Team 2021-05-28 13:34:22 UTC
Created attachment 172409 [details]
The textbox properties in Word and Writer

This VML textbox has the "Word wrap text in shape" property turned ON in Word, but not in Writer. 
Manually checking that box in Writer fixes the display of the text contents.
Comment 3 Justin L 2023-05-10 20:08:55 UTC
repro 7.6+
If I round-trip it in Word 2010, then it looks fine. It changes into something else that imports wrap fine. I couldn't even find the xml setting that controls whether the text wraps inside the frame or not.
Comment 4 Justin L 2024-05-31 15:06:47 UTC
repro 24.8+

(In reply to Justin L from comment #3)
> If I round-trip it in Word 2010, then it looks fine.
That's pretty much irrelevant. Word 2010 will export in DML format - this is a VML bug report.

> I couldn't even find the xml setting
> that controls whether the text wraps inside the frame or not.
v:shape mso-wrap-style:none is the setting to turn it off. The default is to wrap. Fixed for bug 97618,

Unfortunately, importing with text wrap on does not solve the problem.