Bug 158319 - Data corruption in Calc after Cut and Paste Special of a row
Summary: Data corruption in Calc after Cut and Paste Special of a row
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste-Special
  Show dependency treegraph
 
Reported: 2023-11-22 14:05 UTC by jpdf
Modified: 2024-05-03 23:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
About LibreOiifceCalc (5.84 KB, application/pdf)
2023-11-22 14:12 UTC, jpdf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jpdf 2023-11-22 14:05:58 UTC
Description:
After cutting a row and pasting special of this row, with shifting cells down, the row before the one that has been cut contains corrupt data: any cells that referenced other cells in the same row will have there row-reference changed to the pasted row.  
 

Steps to Reproduce:
Create a sheet as follows:
       ColA   ColB      
Row1    1      =A1 displayed as 1
Row2    2      =A2 displayed as 2
Row3    3      =A3 displayed as 3
Row4    4      =A4 displayed as 4 
Then cut Row3 and paste special with shifting cells down on Row1.
This results in the following
       ColA   ColB      
Row1    3      3  displayed as 3
Row2    1      =A2 displayed as 1
Row3    2      =A1 displayed as 3
Row4    
Row5    4      =A5 displayed as 4 

So Row3/ColB has been corrupted

Actual Results:
So Row3/ColB has been corrupted

Expected Results:
       ColA   ColB      
Row1    3      3   displayed as 3
Row2    1      =A2 displayed as 1
Row3    2      =A3 displayed as 2
Row4    
Row5    4      =A5 displayed as 4 



Reproducible: Always


User Profile Reset: No

Additional Info:
Row3/ColB should contain =A3 not =A1
Some recent, older versions have the same bug, but it used to work before ??
See About info in attached file
Comment 1 jpdf 2023-11-22 14:12:23 UTC
Created attachment 190968 [details]
About LibreOiifceCalc
Comment 2 m_a_riosv 2023-11-22 14:31:36 UTC
Reproducible:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: bc5c767e9aebadf12aa6a181a6ce066cbfff71ad
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 3 jpdf 2024-05-03 16:47:46 UTC
Is anybody looking at this bug?
I find it a rather serious problem and the bug is still present in 7.6.6.3 (X86_64)
Comment 4 m_a_riosv 2024-05-03 23:33:31 UTC
Selecting also paste formulas works fine.

It never works, inherited from OpenOffice.

Reproducible with all versions.