Bug 169167 - Writer Comment/Annotation Range Lost on Cut+Paste
Summary: Writer Comment/Annotation Range Lost on Cut+Paste
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Comments
  Show dependency treegraph
 
Reported: 2025-10-31 10:39 UTC by dolezvo1
Modified: 2025-11-03 07:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Before pressing Ctrl+X, Ctrl+V (11.96 KB, image/png)
2025-10-31 14:33 UTC, dolezvo1
Details
After pressing Ctrl+X, Ctrl+V (10.39 KB, image/png)
2025-10-31 14:33 UTC, dolezvo1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dolezvo1 2025-10-31 10:39:15 UTC
Description:
When cutting and pasting a text which has comments/annotations, the range of said annotations is lost (specifically the start of said range is set to the end of the range, and the original start is forgotten).

Steps to Reproduce:
1. Create a comment over a text range in Writer
2. Cut the text
3. Paste the text

Actual Results:
The comment is now shown as relating to only the end of the former range.

Expected Results:
The comment should keep its range when cutting and pasting.


Reproducible: Always


User Profile Reset: No

Additional Info:
Undoing the cut using Ctr+Z brings back the range.
Comment 1 raal 2025-10-31 14:28:29 UTC
I cannot reproduce in Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c7b3ea692f293346fbbdf2a391d9d971c34fa1f2
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Please attach test file and specify what you select and where you paste.

Please copy and paste here the contents of your Help - About from your LibreOffice. This allows us to know more about your system.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 2 dolezvo1 2025-10-31 14:33:24 UTC
Created attachment 203635 [details]
Before pressing Ctrl+X, Ctrl+V
Comment 3 dolezvo1 2025-10-31 14:33:37 UTC
Created attachment 203636 [details]
After pressing Ctrl+X, Ctrl+V
Comment 4 dolezvo1 2025-10-31 14:34:43 UTC
I've added screenshots, hope that helps.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: cs-CZ (cs_CZ); UI: en-GB
Calc: threaded
Comment 5 raal 2025-10-31 14:59:14 UTC
Confirm. It works in ver 7.3.7
Comment 6 raal 2025-10-31 15:07:45 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-25.8.
Adding Cc: to Miklos Vajna ; Could you possibly take a look at this one?
Thanks
 9064f8a4df8045b9038f68c637cb923fe197cd41 is the first bad commit
commit 9064f8a4df8045b9038f68c637cb923fe197cd41
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Fri Jan 31 18:50:07 2025 +0100

    source b0a4afc58e1c9434e56ddb96c41f4ebe5985ed0a

180991: cool#10610 Ensure the parent-child relations of comments. | https://gerrit.libreoffice.org/c/core/+/180991
Comment 7 Miklos Vajna 2025-11-03 07:37:27 UTC
CC Gokay