Issue 32500

Summary: Paste doesn't copy attribtues properly
Product: Writer Reporter: openoffice
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: george.politis, issues, steve.b.wardell
Version: 680m48   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description openoffice 2004-08-03 11:15:31 UTC
To reproduce, do this:

1) new document
2) type in the following text:
ab
c
d
3) mark the 'b' with color red
4) select all text and copy
5) new document
6) paste into new document -> OK
7) select text in new document, paste again -> 'd' has wrong color
Comment 1 andreas.martens 2004-10-22 14:35:43 UTC
Because of a shortage of resources we have to retarget this issue to OOo later. 
Comment 2 gpolitis 2006-10-27 01:48:56 UTC
A similar problem I encountered was this:

1) type
ab
cd
2) colour 'b' red
3) colour 'd' green
4) select the second line 'cd' and copy
5) select the first line and paste

The colour of 'd' is preserved (green) but the colour of 'c' in the first line
changes to red.


Could someone also look at issue 69958 and see if it's a duplicate of this one?
Comment 3 gpolitis 2006-10-27 01:49:53 UTC
A similar problem I encountered was this:

1) type
ab
cd
2) colour 'b' red
3) colour 'd' green
4) select the second line 'cd' and copy
5) select the first line and paste

The colour of 'd' is preserved (green) but the colour of 'c' in the first line
changes to red.


Could someone also look at issue 69958 and see if it's a duplicate of this one?
Comment 4 makarenka 2008-02-04 05:12:06 UTC
I was able to successfully reproduce this bug (both descriptions listed above).
My configuration:
OS:         Windows XP Home Edition 2002 SP2
Machine:    AMD Sempron 3000+ (1.58 GHz, 1.18 GB RAM) 
OpenOffice: v2.3.1

Here is a more detailed sequence of steps for the first description:
1. Open a new document in OpenOffice Writer. Call it "doc1".
2. Type in the following text:
   ab
   c
3. Mark the 'b' with color 'red 1' (or any other color) by using the 'Font
color' button on toolbar at the top.
4. Select all text by using Ctrl-A OR by going to 'Edit->Select All'.
5. Copy the text by using Ctrl-C OR by going to 'Edit->Copy'.
6. Open another new document. Call this "doc2".
7. Paste the text into the 'doc2'.
8. Everything appears the same as after step 3.
9. Select all text in 'doc2' using Ctrl-A.
10. Paste the text in 'doc2' using Ctrl-P or by going to 'Edit->Paste'
11. The 'b' appears in red colour (as expected), however, 'c' appears in red
colour as well (unexpected).


The sequence of steps in the second description is detailed enough.

Here is a little follow-up test on the second description of the problem:
1. Open a new document in OpenOffice Writer.
2. Type in the following text:
   abc
   def
3. Mark the letters with the following colours using the 'font colour' button on
the main toolbar:
   'b' -> red
   'c' -> yellow
   'e' -> green
   'f' -> blue
4. Select the second line ('def').
5. Copy the selected text by using Ctrl-C OR by going to 'Edit->Copy'.
6. Select letters 'ab' ONLY.
7. Paste the text copied in step 5 by using Ctrl-P.
8. The letters 'defc' appear on the first line with the following colours:
   d->red (unexpected), e->green (expected), f->blue(expected), c->yellow   
(expected)
9. Press Ctrl-Z in order to UNDO the changes done in step 8. The two lines of
letters appear in the same condition as right after step 3.
10. Select letters 'abc' (i.e. select all the letters in the first line)
11. Paste the text copied in step 5 by using Ctrl-P.
12. The letters 'def' appear in the first line with the following colours:
    d->yellow (unexpected), e->green (expected), f->blue(expected)

From the above test, it appears that the colour of the last selected letter
affects the colour of the first 'pasted' letter.
Comment 5 makarenka 2008-02-04 22:02:22 UTC
Here is even shorter and simpler description of the steps required to reproduce
the original bug:

1. Open a new document in OpenOffice Writer.
2. Type in the following text:
   ab
   c
3. Mark the 'b' with color 'red 1' (or any other color) by using the 'Font
color' button on toolbar at the top.
4. Select all text by using Ctrl-A OR by going to 'Edit->Select All'.
5. Copy the text by using Ctrl-C OR by going to 'Edit->Copy'.
6. Select all text using Ctrl-A.
7. Paste the text using Ctrl-P or by going to 'Edit->Paste'
8. The 'b' appears in red colour (as expected), however, 'c' appears in red
colour as well (unexpected).
Comment 6 lgaterarin 2010-11-10 21:13:10 UTC
Created attachment 73634
Comment 7 Rob Weir 2013-07-30 02:20:53 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.