Bug 160859

Summary: Paste only comments fails when several cells copied
Product: LibreOffice Reporter: Stéphane Guillou (stragu) <stephane.guillou>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: andreas.heinisch, miguelangelrv
Priority: medium Keywords: bibisected, bisected, regression
Version: 7.6.0.0 alpha1+   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:

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 ***