Bug 136258

Summary: FILEOPEN DOCX Long text is not broken in rectangle inside canvas
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: nemeth, rb.henschel, regenyi.balazs+libreoffice_bugzilla, szabolcs450
Priority: medium Keywords: filter:docx
Version: 4.4.7.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=97618
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 136361    
Attachments: Example file from Word
Screenshot of the original document side by side in Word and Writer
Similar example file, minimized from bug #104604

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.