Bug 107595 - wrong RTF export of text frame positioned relative to page
Summary: wrong RTF export of text frame positioned relative to page
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: RTF
  Show dependency treegraph
 
Reported: 2017-05-03 12:57 UTC by Christian Nieber
Modified: 2020-06-02 19:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
example with text object (13.29 KB, application/vnd.oasis.opendocument.text)
2017-05-03 12:57 UTC, Christian Nieber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Nieber 2017-05-03 12:57:18 UTC
Created attachment 133029 [details]
example with text object

The text box in the example is positioned relative to the page and anchored in a paragraph. When exported to RTF, it is written with shape properties posrelh=3 and posrelv not specified, i.e. the offsets are instead interpreted relative to paragraph and the box is positioned too far down and right.
It would come out correct if it exported posrelh=1 and posrelv=1.
Other types of relative positions are probably also wrong in RTF.
Comment 1 Xisco Faulí 2017-05-03 15:08:00 UTC
Confirmed in

Version: 5.4.0.0.alpha0+
Build ID: 597a2f5d5bd37443262b0775b8439bc3502aef1b
CPU threads: 4; OS: Linux 4.8; UI render: default; VCL: gtk2; 
Locale: es-ES (ca_ES.UTF-8); Calc: group

The import part of the textbox was implemented in 9835a5823e0f559aabbc0e15ea126c82229c4bc7
Comment 2 QA Administrators 2018-06-18 02:42:25 UTC Comment hidden (obsolete)
Comment 3 Mike 2020-06-02 19:59:08 UTC
repro

Version: 6.4.2.2
Build ID: 1:6.4.2-0ubuntu3
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-US (de_DE.UTF-8); UI-Language: en-US
Calc: threaded

Version: 6.4.4.2 (x64)
Build-ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU-Threads: 4; BS: Windows 10.0 Build 18363; UI-Render: Standard; VCL: win; 
Gebietsschema: fa-IR (de_DE); UI-Sprache: de-DE
Calc: CL

Version: 7.0.0.0.beta1 (x64)
Build ID: 94f789cbb33335b4a511c319542c7bdc31ff3b3c
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-US
Calc: threaded