Bug 98440

Summary: Copy and Paste of table rows un-does merging
Product: LibreOffice Reporter: Jim Avera <jim.avera>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: major CC: buzea.bogdan
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=122044
https://bugs.documentfoundation.org/show_bug.cgi?id=132628
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103100, 108364    
Attachments: sample odt file

Description Jim Avera 2016-03-05 06:44:01 UTC
If a row is copied and pasted onto another row in a Table, the text and formatting is copied as expected.

However merged cells are un-merged, so the text ends up in the wrong columns, and some text is duplicated.

STEPS TO REPRODUCE:

1. Start Writer, insert a table with (say) 5 rows and 5 columns
2. Select two adjacent cells in a row, click the "Merge" icon (or Table->Merge).\

   Insert unique text into every visible cell in the row

3. Select all cells in the row.  Control-C to copy
4. Select all cells in another row.  Control-P to paste

RESULTS:  The merged-ness of the copied cells is lost, and text is pasted into the wrong cells.  Text in the first column is duplicated in the last column

EXPECTED RESULTS: The pasted-onto row should look exactly like the source row.
Comment 1 Usama 2016-03-06 18:30:12 UTC
Created attachment 123352 [details]
sample odt file

Hello Jim,

Thank you for reporting the bug. I can confirm that the bug is present in master.
sample file is attached.

I noticed that after pasting the content of the newly created cell after splitting is copied from the first cell in the row.

Version: Version: 5.2.0.0.alpha0+
OS: Ubuntu 15.10
Comment 2 QA Administrators 2018-07-02 02:36:44 UTC Comment hidden (obsolete)
Comment 3 Jim Avera 2018-07-02 07:11:18 UTC
Bug is still present in master (6.2.0.0.alpha0 of 7/1/2018)
Comment 4 Timur 2018-12-24 17:09:08 UTC
Still in 6.3+. This is data loss.
Comment 5 BogdanB 2022-01-27 21:02:02 UTC
Still here,
Retested with 7.4

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 2f4f4cbeb8e50081d607b86b0475b93971c40ab8
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 6 Anandhi k 2023-02-01 07:25:11 UTC
yes Reproduced
 
STEPS TO REPRODUCE:

1. Start Writer, insert a table with (say) 5 rows and 5 columns
2. Select two adjacent cells in a row, click the "Merge" icon (or Table->Merge).\

   Insert unique text into every visible cell in the row

3. Select all cells in the row.  Control-C to copy
4. Select all cells in another row.  Control-P to paste

RESULTS:  The merged-ness of the copied cells is lost, and text is pasted into the wrong cells.  Text in the first column is duplicated in the last column

EXPECTED RESULTS: The pasted-onto row should look exactly like the source row.

I had a commplicate with result if i use control-v instead of control -p in got a excepted result 


Environment:Linux Mint 21 Cinnamon
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620ad1b7ae06d6f053fb2c9b57af96b736c04e57
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded