Bug 135659 - Images positioned wrongly after paste RTF, undo, regular paste
Summary: Images positioned wrongly after paste RTF, undo, regular paste
Status: RESOLVED DUPLICATE of bug 151974
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2020-08-12 10:07 UTC by Telesto
Modified: 2024-02-07 06:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (316.25 KB, application/vnd.oasis.opendocument.text)
2020-08-12 10:07 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-08-12 10:07:15 UTC
Description:
Images positioned wrongly after paste RFT undo regular paste

Steps to Reproduce:
1. Open the attached file
2. CTRL+A
3. CTRL+C
4. CTRL+N
5. CTRL+SHIFT+V -> RTF -> OK
6. CTRL+Z
7. CTRL+V

Actual Results:
image not anymore inside table

Expected Results:
Should be so


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: <buildversion>
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: ru-RU (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-08-12 10:07:31 UTC
Created attachment 164191 [details]
Example file
Comment 2 Telesto 2020-08-12 10:15:53 UTC
Also in
4.4.7.2

and in 
4.2.7.2

not in
4.0.0.3
Comment 3 Dieter 2021-03-22 07:26:09 UTC
Telesto, unfortunately nothing has happened with this bug report for more than half year. So I'd like to ask, if it is still valid. Could you please try to reproduce it with the latest version of LibreOffice?
=> NEEDINFO
Comment 4 QA Administrators 2021-09-20 03:42:27 UTC Comment hidden (obsolete)
Comment 5 raal 2021-10-02 18:17:50 UTC
I can confirm with Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: b63c5ade3554a42def4bce94f9fd67ea66528214
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 6 Aron Budea 2021-10-14 04:34:05 UTC
Note that the problem isn't with the placement of the image, but the wrapping becomes different. Not the setting, that stays the same, just whether the row is resized to accomodate the image or not.

The steps started crashing at the RTF paste step at the beginning of the following range, and when the crash was gone at the end of the range, the result was already bad.

https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=7b4bdab8252200e89a05294bdcdebef2ab9feb81..1a89eaeabd31dddfbad037e8109431a924632543
Comment 7 QA Administrators 2023-10-15 03:16:13 UTC Comment hidden (obsolete)
Comment 8 Mike Kaganski 2024-02-07 05:14:18 UTC
Fixed by 2d0a87f97e2c9ac50cd6ce329ca8256daf94ead4.

*** This bug has been marked as a duplicate of bug 151974 ***
Comment 9 Mike Kaganski 2024-02-07 05:23:33 UTC
Note that the bisection pointed to commit 8f8b31abd02876c3601e343b8b3274754f8a61b6, which introduced the compatibility flag to properly wrap text in MS formats; but the real problem was that pasting such an MS format (RTF) also modified the target's compat settings, so the later paste of ODF format produced a different result.

In a sense, this would still be problematic, if you try to paste not into a new document after the RTF-paste-and-undo dance, but directly into an opened Word document (say, DOCX). It may need an own report.