Bug 161356 - Undo puts previous text to a wrong position
Summary: Undo puts previous text to a wrong position
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Header-Footer Undo-Redo Writer-Styles-Page-Odd-Even
  Show dependency treegraph
 
Reported: 2024-05-31 07:37 UTC by Martin Feuerstein
Modified: 2024-06-03 18:23 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
example video (2.97 MB, video/x-matroska)
2024-06-01 12:20 UTC, Martin Feuerstein
Details
test file (18.06 KB, application/vnd.oasis.opendocument.text)
2024-06-01 12:21 UTC, Martin Feuerstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Feuerstein 2024-05-31 07:37:17 UTC
Steps to reproduce:
- open existing odt document
- mark a piece of text, replace it with another text from clipboard keeping the formatting of the inserted text
--> when inserting without formatting the issue does not occur
- undo it

Result: the previous text is inserted at another position in the document, the position of the inserted prevoius text does not change when reproducing the issue (no random position).
Comment 1 Martin Feuerstein 2024-06-01 12:20:42 UTC
Created attachment 194507 [details]
example video
Comment 2 Martin Feuerstein 2024-06-01 12:21:11 UTC
Created attachment 194508 [details]
test file
Comment 3 Telesto 2024-06-01 18:52:19 UTC
Confirm with
Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: e3bd3c7e3178dc091fd002628f052666b4db3be6
CPU threads: 4; OS: Windows 8.1 X86_64 (6.3 build 9600); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

fine with
Version: 7.6.3.0.0+ (X86_64) / LibreOffice Community
Build ID: 35f19e5cb93ce218787904e99c2bedfd40e725cc
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 threaded
Comment 4 raal 2024-06-02 15:56:55 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-24.2.
Adding Cc: to Tomaž Vajngerl ; Could you possibly take a look at this one?
Thanks
 7d88ba79576f9cf91a9366bf526b0eb428ddadb0 is the first bad commit
commit 7d88ba79576f9cf91a9366bf526b0eb428ddadb0
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Fri Dec 1 08:33:57 2023 +0100

    source 4b0fa253a4540f5461397815d290586f9ddabe61
157860: tdf#136472 adjust ooxml import to handle first header/footer | https://gerrit.libreoffice.org/c/core/+/157860