Bug 118181 - LibreOffice Writer misplace table, miss text if I insert a rtf into a Text Document
Summary: LibreOffice Writer misplace table, miss text if I insert a rtf into a Text Do...
Status: RESOLVED DUPLICATE of bug 111482
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-15 15:10 UTC by robert.rong
Modified: 2019-02-13 11:37 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
the screenshot open the rtf directly in LibreOffice (74.33 KB, image/png)
2018-06-15 15:11 UTC, robert.rong
Details
the screenshot insert the rtf into a text document (128.17 KB, image/png)
2018-06-15 15:12 UTC, robert.rong
Details
the rtf inserted into a text document (123.51 KB, application/msword)
2018-06-15 15:16 UTC, robert.rong
Details
bug confirmation (43.50 KB, image/png)
2018-06-16 14:21 UTC, Arawa
Details
Comparsion side by side in 6.2 master (103.56 KB, image/png)
2018-06-18 17:32 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description robert.rong 2018-06-15 15:10:29 UTC
Description:
If I insert a rtf into a Text Document in LibreOffice, the inserted text does not look the same as I open the rtf in LibreOffice.

1. some text lines are missing
2. the text in a table are missing
3. a table is positioned at the wrong location.

Steps to Reproduce:
1. Lanuch LibreOffice Writer on Windows 7
2. select File ->New -> Text Document
3. focus on the document pane
4. select Insert -> Test from File, browse and select the rtf 'bug3.rtf' (the rtf is attached)
5. click 'Insert' button on the Insert window.
6. see the content displayed in LibreOffice (screenshot Insert_bug3.rtf.png)


Actual Results:
missing text and the table position is wrong

Expected Results:
1. the content of the inserted text should be the same as the original rtf document.
2. the table position should be the same as the one in the original rtf doc.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
old version of LibreOffice 5.4.6.2 crash if I insert the rtf into a text doc.
The bug reported as https://bugs.documentfoundation.org/show_bug.cgi?id=118170

the version 6.0.4.2 won't crash, but the inserted text is wrong.
Comment 1 robert.rong 2018-06-15 15:11:22 UTC
Created attachment 142776 [details]
the screenshot open the rtf directly in LibreOffice

see the expected table position and the text
Comment 2 robert.rong 2018-06-15 15:12:31 UTC
Created attachment 142777 [details]
the screenshot insert the rtf into a text document

see the actual result of the inserted content: missing text and wrong position of the table
Comment 3 robert.rong 2018-06-15 15:13:03 UTC
the attached screenshot DirectOpenRTF_bug3.rtf.png is the content viewed in LibreOffice by directly open the file bug3.rtf (File -> Open -> select bug3.rtf)

the attached screenshot Insert_bug3.rtf.png is the content viewed in LibreOffice by insert the file bug3.rtf into a Text document (File ->New -> Text Document, then Insert -> Text from File and select bug3.rtf)

The differences:

1. The second table was put at the top of the page, it should be in the middle of the page.  (see note 1 on the attached screenshot Insert_bug3.rtf.png)

2. Missing content in the third table (see note 2 on the attached screenshot Insert_bug3.rtf.png) 

3. missing text lines "OPTINIAO:",  "Exame sem ..." and "Medidas das ..." (see note 3 on the attached screenshot DirectOpenRTF_bug3.rtf.png)
Comment 4 robert.rong 2018-06-15 15:16:24 UTC
Created attachment 142778 [details]
the rtf inserted into a text document

the rtf file used in the test.
Comment 5 Arawa 2018-06-16 14:21:07 UTC
Created attachment 142795 [details]
bug confirmation

I can reproduce this.


Version: 6.0.4.2
Build ID: 1:6.0.4~rc2-0ubuntu0.18.04.1
Threads CPU : 8; OS : Linux 4.15; UI Render : par défaut; VCL: kde4; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 6 Dieter 2018-06-17 12:31:45 UTC
(In reply to Brascens from comment #5)
> I can reproduce this.
> 

Brascens, if you are able to reproduce it, you can change the status to NEW (I did it now).
Comment 7 Telesto 2018-06-17 12:38:19 UTC
Crash with
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and with
Version: 5.4.1.0.0+
Build ID: f200d5700782ae179fd96b6ad4b0fe8e7edd1616
CPU threads: 4; OS: Windows 6.29; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 8 Xisco Faulí 2018-06-18 17:32:19 UTC
Created attachment 142876 [details]
Comparsion side by side in 6.2 master
Comment 9 Xisco Faulí 2018-06-18 17:48:06 UTC
Regression introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=505ce3a2ba3adeef46daecbf9b14c42cea211408 which is the same as in bug 111482
Closing as RESOLVED DUPLICATED.

*** This bug has been marked as a duplicate of bug 111482 ***
Comment 10 Xisco Faulí 2019-02-13 11:37:15 UTC
The issue is fixed in

Versión: 6.2.0.3
Id. de compilación: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded