Issue 102565 - Paste in table: copied row should be inserted instead of replacing current row
Summary: Paste in table: copied row should be inserted instead of replacing current row
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-06 15:33 UTC by macias
Modified: 2013-08-07 14:38 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description macias 2009-06-06 15:33:49 UTC
To realize the nature of the bug do the following:
1) type world
2) select and cut "world"
3) type "hello "
4) press ctrl+v
5) you will get "hello world"
6) select "hello world"
7) paste again -> the selected text is replaced with "world"

But this does not work tables. When you copy a row, and then you paste it, no 
matter if the "target" row is selected or not, it is always replaced.

Behaviour should be consistent, bug.
Comment 1 eric.savary 2009-06-06 16:06:37 UTC
Instead of giving an example with simple text where it works, give an example
with a table in a sample document.
Describe what you do, get and expect.

Text and tables are definitively NOT the same and cannot work the same way.
Comment 2 macias 2009-06-06 16:11:42 UTC
I know tables and text are not the same, but here behaviour can be the same and 
should be the same.

How to reproduce it, step by step:
1. create two tables, A and B, 2x2 each
2. fill each cell with some text
3. select first row in table B and copy it
4. position the caret in the last row of A, left column
5. paste
6. A is still 2x2, the last row is _replaced_ (bug)

ad.6) the pasted row should be inserted because the mode is "insert" and the 
target row is not selected
Comment 3 eric.savary 2009-06-07 09:51:50 UTC
@macias:
Ok but there's a problem with the "expacted" result.
Taking the example with the text (your first description):
- you pasted "world" *after* "hello"
- in the table example, the cursor is *at the beginning* of a row and *inside
of* the entity (row).

So comparing the cursor position in the table with that one in the text, the
cursor is inside the word at a stating position: "h|ello".

To make it short: it's not clear if the table row to insert (desired
enhancement) sould be *before* or *after* the current row....


@requirements: paste in table of copied row should be inserted instead of
replacing current row


Reassigned
Comment 4 macias 2009-06-07 16:22:16 UTC
I don't see how fixing a bug is enhacement. It is a bug because it is 
inconsistent and and it ignores mode (insert).

Inserted row should be placed after for the same reason -- consistency. When 
you paste two rows at the end of the table, first row is replaced the second 
row is inserted.

Anyway, if user does not pay attention and rely on OOWriter status this leads 
to data loss (data that has been replaced).