Bug 136258 - FILEOPEN DOCX Long text is not broken in rectangle inside canvas
Summary: FILEOPEN DOCX Long text is not broken in rectangle inside canvas
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Canvas-Shape
  Show dependency treegraph
 
Reported: 2020-08-29 07:54 UTC by NISZ LibreOffice Team
Modified: 2023-11-24 16:16 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (33.25 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-08-29 07:54 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Word and Writer (58.04 KB, image/png)
2020-08-29 07:54 UTC, NISZ LibreOffice Team
Details
Similar example file, minimized from bug #104604 (19.07 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-10-06 14:35 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-08-29 07:54:04 UTC
Created attachment 164847 [details]
Example file from Word

This is split off from bug #97618
Attached file is minimized from attachment #122423 [details] and shows rectangle shapes on a canvas with long text.
Opened in Writer the long text is not broken to multiple lines.

Steps to reproduce:
    1. Open attached file

Actual results:
Long text flows out ot the rectangles.

Expected results:
Long text breaks to multiple lines.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x86)
Build ID: 6640d7f405d2970ba2825a9455926cc803284d01
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-08-29 07:54:24 UTC
Created attachment 164848 [details]
Screenshot of the original document side by side in Word and Writer
Comment 2 Telesto 2020-08-29 20:14:13 UTC
Confirm
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 6640d7f405d2970ba2825a9455926cc803284d01
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

Also with
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 3 NISZ LibreOffice Team 2020-10-06 14:35:00 UTC
Created attachment 166125 [details]
Similar example file, minimized from bug #104604

This is the lower half of the example file in bug #104604
Maybe the same problem, maybe not.

Reference rendering is attachment #129530 [details] - text should be wrapped but currently it isn't inside the callouts.
Comment 4 QA Administrators 2022-10-07 03:37:59 UTC Comment hidden (obsolete)
Comment 5 Regina Henschel 2022-10-07 13:06:29 UTC
The problem is, that the rectangle is imported as PolyPolygonShape and not as custom shape rectangle or as text box. And a PolyPolygonShape is not able to word wrap the paragraphs.

The problem has still no solution in Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c3b5eea4304ad6815b491f549fce008a9630c213
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded
Comment 6 Regina Henschel 2023-11-15 21:36:06 UTC
With commit https://cgit.freedesktop.org/libreoffice/core/commit/?id=0430adb42bc38f037b907984e71c144d863796cb the wpc element is used instead of the VML fallback. Now the rectangles are imported as custom shape and the text wraps.