Issue 112135

Summary: Pasting a nested table overwrites whole outer table
Product: Writer Reporter: jszpila <jszpila>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, orw, rainerbielefeld_ooo_qa
Version: OOo 3.1.1Keywords: needmoreinfo, oooqa
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
first example with nested table, properly formatted before paste
none
file with overwritten content after paste
none
Please see comments from rainerbielefeld Sat Jun 5 09:05:03
none
Simplified issue reproduction
none
Mentioned *very* short document none

Description jszpila 2010-06-05 06:23:39 UTC
When selecting and cutting a nested table (example1.odt) as specified in the documentation (Table > 
Select > Table, Command + X), when it is pasted (Command + V) it overwrites other content 
(example2.odt).
Comment 1 jszpila 2010-06-05 06:24:46 UTC
Created attachment 69809 [details]
first example with nested table, properly formatted before paste
Comment 2 jszpila 2010-06-05 06:25:20 UTC
Created attachment 69810 [details]
file with overwritten content after paste
Comment 3 jszpila 2010-06-05 06:28:53 UTC
Table pasted was "Experience (continued)" (second page), attempted paste location was first line of second 
page, just above the table.
Comment 4 Rainer Bielefeld 2010-06-05 09:50:58 UTC
It seems that I can reproduce a problem with "Ooo 3.1.1 WIN XP DE[OOO310m19
(Build 9420)]"

Steps to reproduce:
0. open "Example1.odt"
2. Click into Table 3 Heading "Experience" on first page so that cursor is 
   in front of word "Experience"
3. Menu 'Table -> Select -> Table'
   Table with 6 rows will be selected
4. <cntrl>+<x>
  Table contents will be copied to clipboard and deleted from table (but
  table structure will remain)
5. Go to Paeg 2 of document. click in front of table heading 
   "Experience (Continued)"
6. <ctnrl>+<v>
   expected: clipboard contents should be inserted in front of heading 
             without deleting any table contents
   actual: clipboard contents will overwrite old table contents until
           "Associate Web Developer" (excl.)
It's not necessary to follow the step by step instruction exactly, 
simple copy / paste will show the same effect. 

Same with "Ooo-Dev 3.3 multilingual version English UI WIN XP: [DEV300m80 (Build
9507)]"!

I got a really crude effect when I pasted the contents from clipboard into the
last cell of the outer table on page 3 (Table 1 B1): All other contents has been
lost (as shown in Attachment "Example2.odt")

@jszpila:
Pls try to find out what OOo version you are using!
Comment 5 Rainer Bielefeld 2010-06-05 10:05:03 UTC
I successfully created a sample document with 3.1.1 showing result of my
description step 2 and following

ATTENTION, this instruction does not lead to sample document witn 3.1.1
0. open new WRITER document
1. Menu 'Insert -> Table <ok>
   will insert table with 2 rows and 2 columns
2. Click into B1
3. Menu 'Insert -> Table <ok>
   will insert table with 2 rows and 2 columns into cell
4. Fill each cell of new table with an "a"
5. click below new table
6. Press <enter>
7. Menu 'Insert -> Table <ok>
   will insert table with 2 rows and 2 columns into cell below table with 
   "a" in it's cells
8. Fill each cell of new table with an "b"
9. click into first cell of table filled with "a"
10. press <cntrl>+<a> to select all table contents
11. <cntrl>+<c> for copy
12. click in front of first "b" in next cell
13. <cntrl>+<v>
  expected: clipboard contents should be inserted in front of "b"  
             without deleting any "b" table contents
   actual: clipboard contents will overwrite old table contents "a" with "b"

I failed to create an own sample document for my "crude" observation.

@jszpila:
can you please try to contribute a step by step instruction how to create a
sample document "from the scratch "for my "crude" observation?

Comment 6 Rainer Bielefeld 2010-06-05 10:05:57 UTC
Created attachment 69812 [details]
Please see comments from rainerbielefeld Sat Jun 5 09:05:03
Comment 7 jszpila 2010-06-05 17:32:28 UTC
Created attachment 69817 [details]
Simplified issue reproduction
Comment 8 jszpila 2010-06-05 17:43:52 UTC
The version of OOo I'm using is 3.1.1 for Mac OS 10.6 for Intel Macs.

I'm uploaded a new file that replicates the issue. Steps to recreate:
1. Open a new document
2. Create a new table (Table > Insert > Table), Table 1,  with 2 rows and 2 columns
3. Put one letter in each cell (A, B, C, D, top left to bottom right)
4. Select the cell with D in it; erase the D
5. Hit enter to insert a line break
6. Insert a new table (Table > Insert > Table) Table2, with 2 rows and 2 columns
7. Put one number in each cell (1, 2, 3, 4, top left to bottom right)
8. Select Table2 (Table > Select > Table)
9. Cut Table2 (Command + X)
 - NOTE: this seems to leave the table structure intact but remove the content,  which is unexpected.
10. Move the cursor to the line above Table2 (but still within the same cell)
11. Paste (Command + V)
 - Expected: Table is inserted at cursor position
 - Actual: 
 -- Cell containing Table2 is over-written with the content of Table2's top left cell (Cell containing 1)
-- A new row is inserted at the bottom of Table1
--- Cell under "C" is blank
--- Cell under "1" contains "3", Table2's bottom-left value
Comment 9 eric.savary 2010-06-06 12:50:41 UTC
@MRU: same root cause as issue 55944?
Comment 10 michael.ruess 2010-06-07 11:05:14 UTC
MRU->MST: in jszpila's first attachment it feels like the "Super-GAU" ;-)
copying and pasting an inner table an a different place of the outer table will
result in the large table being practically overwritten. In my example, coy the
whole sub-table and paste in a different place -> the sub-table pastes itself as
a new row of the table.
Comment 11 michael.ruess 2010-06-07 12:03:58 UTC
Created attachment 69852 [details]
Mentioned *very* short document
Comment 12 Marcus 2017-05-20 11:15:22 UTC
Reset assigne to the default "issues@openoffice.apache.org".