Bug 160859 - Paste only comments fails when several cells copied
Summary: Paste only comments fails when several cells copied
Status: RESOLVED DUPLICATE of bug 158110
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2024-04-29 13:25 UTC by Stéphane Guillou (stragu)
Modified: 2024-04-30 04:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2024-04-29 13:25:56 UTC
Steps:
1. Insert a comment in cell A1
2. Copy range A1:A2
3. Paste special into B1, with only option "Only comments" ticked

Results: no comment pasted in target

Reproduced in:
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d4f6534e8870e8f271984c37ce54a6878f372ae1
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3

Same on Windows 11.

Bibisected with linux-64-7.6 repo to first bad commit d82812a13723fc093897c1b27d29ac263c66d0d0 which points to:

commit 28bcb35b12f19858eca3d08559d7914e36ad1d2b
Author: Andreas Heinisch
Date:   Wed May 10 09:08:47 2023 +0200
    tdf#139858 - Do not delete existing cell contents when pasting notes
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151603

Andreas, can you please have a look?
Comment 1 Andreas Heinisch 2024-04-29 19:02:36 UTC
Confirmed in:
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 88a8c897726ae9613f02834a3a843749e8b889c2
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded

Copying range A1:B1 to A2:B2 surprisingly works.
Comment 2 m_a_riosv 2024-04-29 22:40:03 UTC

*** This bug has been marked as a duplicate of bug 158110 ***