Bug 121617 - RTF rendering fails to float the text around a shape despite \shpwr2\shpwr3 as part of the \shp block
Summary: RTF rendering fails to float the text around a shape despite \shpwr2\shpwr3 a...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.3.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Shapes
  Show dependency treegraph
 
Reported: 2018-11-22 11:53 UTC by poul.steen
Modified: 2023-12-29 14:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
RTF file demonstrating missing floating text around shape (172.53 KB, text/rtf)
2018-11-22 11:58 UTC, poul.steen
Details
LO 24.2 rendering (463.28 KB, image/png)
2023-12-29 14:55 UTC, eisa01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description poul.steen 2018-11-22 11:53:59 UTC
Description:
RTF rendering fails to float the text around a shape despite \shpwr2\shpwr3 as part of the \shp block when surrounded by a table definition (\\trowd - \\row) placing the 
group for text with a shape within a table.

Steps to Reproduce:
1.In an RTF file insert a text and a shape (e.g. with a picture) within a table using \trowd\trleft0\cellx9072\trql\intbl <picture> and <text> \cell\row
2.Open the RTF file using LibreOffice Writer

Actual Results:
Despite of the control sequence "\shpwr2\shpwr3" within the "\shp" block, the text will not flow around the shape.


Expected Results:
Because of the control sequence "\shpwr2\shpwr3" within the "\shp" block, the text is expected to flow around the shape on its left side according to the specs. In fact it asks for floating on the side with most space, which happens to be left in this case, but it does not change, if you explicitly asks for "left floating".


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I have also tested this on the currently latest version (6.3.7.2) having the same result.
Comment 1 poul.steen 2018-11-22 11:58:33 UTC
Created attachment 146905 [details]
RTF file demonstrating missing floating text around shape

This file demonstrates the two situations: 
- The first group of text below (starting "A.1") consists of some text and a shape (with a picture) where the text according to the specs correctly flows around the shape on its left side (as a result of the control sequence "\shpwr2\shpwr3" within the "\shp" block). 
- The second group of text below is exactly the same, apart from it has been surrounded by a table definition (\trowd-\row) placing the group for text with a shape within a table with one row and one cell. It also shows the same text and the same shape (with a picture), but despite of the control sequence "\shpwr2\shpwr3", within the "\shp" block, the text will NOT flow around the shape.
Comment 2 Alex Thurgood 2018-11-28 10:02:57 UTC
Seems like this is more of an import filter bug. Changing module to reflect that.
Comment 3 Alex Thurgood 2018-11-28 10:10:59 UTC
Neither MSWord, Apple Pages, nor Apple TextEdit display the image of the test file mentioned in the bug report.

Testing with

Version: 6.0.6.2
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
Threads CPU : 4; OS : Mac OS X 10.14.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group

confirms the reported beahviour.
Comment 4 Alex Thurgood 2018-11-28 10:12:27 UTC
Also reproduced with

Version: 6.3.0.0.alpha0+
Build ID: 284dd58e326e61a5d84bde367e1e4873dd738c76
CPU threads: 4; OS: Mac OS X 10.14.1; UI render: default; VCL: osx; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-11-22_23:09:13
Locale: fr-FR (fr_FR.UTF-8); UI-Language: en-US
Calc: threaded
Comment 5 Alex Thurgood 2018-11-28 10:18:56 UTC
Reproduced in 

Version: 5.3.6.1
Build ID: 686f202eff87ef707079aeb7f485847613344eb7
Threads CPU : 4; Version de l'OS :Mac OS X 10.14.1; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 6 Alex Thurgood 2018-11-28 10:22:16 UTC
Reproduced in 
Version: 5.3.4.2
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
Threads CPU : 4; Version de l'OS :Mac OS X 10.14.1; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 7 eisa01 2019-08-31 13:06:20 UTC
Verified that rendering is the same between macOS and Windows, so setting OS to all
Comment 8 QA Administrators 2021-08-31 03:54:56 UTC Comment hidden (obsolete)
Comment 9 Roman Kuznetsov 2021-09-05 10:33:47 UTC
Still repro in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 23f17b7ea6fbd2f422c7e40192ae60e4df25224c
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded

Funny fact is modern MS Word just doesn't show images in the RTF file
Comment 10 QA Administrators 2023-09-06 03:14:02 UTC Comment hidden (obsolete)
Comment 11 eisa01 2023-12-29 14:55:16 UTC
Created attachment 191632 [details]
LO 24.2 rendering

Still an issue, added attachment to show current rendering

Version: 24.2.0.0.beta1 (AARCH64) / LibreOffice Community
Build ID: 5f390384195b7264c6e52add9e90a39790285249
CPU threads: 10; OS: macOS 14.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded