Issue 121084 - Paste from clipboard done twice
Summary: Paste from clipboard done twice
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: 3.4.0
Hardware: Mac Mac OS X 10.7
: P3 Major (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: caselli.translations
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2012-09-23 08:35 UTC by Lutz.Weischer
Modified: 2016-11-03 19:52 UTC (History)
7 users (show)

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


Attachments
A text document with the similar characteristics as reported by the bug report. (9.89 KB, application/vnd.oasis.opendocument.text)
2012-09-24 10:35 UTC, rcotrina2010
no flags Details
1-TypeFourWords (1.09 KB, image/png)
2016-10-14 20:32 UTC, Keith McFall
no flags Details
2-SelectEachWord (1.38 KB, image/png)
2016-10-14 20:33 UTC, Keith McFall
no flags Details
3-SeeResult (2.21 KB, image/png)
2016-10-14 20:33 UTC, Keith McFall
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Lutz.Weischer 2012-09-23 08:35:29 UTC
I did not have this bug in earlier OO versions and I had it for quite some time, but only right now I got a better idea, of what actually happens. It seems to happen only occasionally, that means, I do not know under what conditions it occurs. 
The error is simple, but I've chosen severity 'major', because the text in the document is corrupted by it, often unnoticed. Really troublesome. 
What happens? Very simple. Have a text and replace some text by copy and paste via the clipboard and the key shortcuts (C&V). The error is, that it gets sometimes pasted twice. 
I noticed it only better now, because I have two footnotes (right behind each other - but it does not happen only in footnotes). Both contained the text to be replaced by copy and paste and after replacing the text in the 2nd footnote, it added a 2nd paste in the 1st footnote right after the replacement, something like: 

footnote 1: ... REPLACEDREPLACED ... 
footnote 2: ... REPLACED ... 

It seems, it happens also at the position where the cursor has been before. Therefore sometimes you find the accidental replacement also at the very beginning of the document.
Comment 1 rcotrina2010 2012-09-24 10:35:44 UTC
Created attachment 79630 [details]
A text document with the similar characteristics as reported by the bug report.

This .odt text document has some content(two paragraphs) and two footnotes in order to test the bug, as suggested by the person who reported the bug.
Comment 2 rcotrina2010 2012-09-24 10:51:03 UTC
Unfortunately, I have not been able to replicate the bug.

I tried to replicate it with both 3.4.0 and 3.4.1 versions of Open Office. The operating system is Mac OS X Mountain Lion 1.8.2

My steps for each version were:

1) Uninstalled any previous version of AOO before installing another version.
2) Opened AOO Writer
3) Opened New Document
3) Added content (two paragraphs) to the document along side with two footnotes.
4) a)Without saving: Copied selected text via CTRL-C and CTRL-V and pasted it over  different places on the document, including within paragraphs and footnotes. The text was pasted over other selected text or after text. Later tried to copy and paste with the the menu buttons using the same procedure. Finally, used combinations of keyboard shortcuts and buttons to copy and paste text. No duplicated text was generated.
  b)Saving as an .ODT file: First saved the document, and then repeated the same procedures as done without saving. No duplicated text was generated.
5) Closed the document.
6) Reopened the document.
7) Repeated the same procedure for copying and pasting. No duplicated text was generated.
8) Closed the document.
9) Quit AOO.
10) Restarted AOO.
12) Reopened the document.
13) Repeated the same procedure for copying and pasting. No duplicated text was generated.
Comment 3 Cem Kaner 2012-10-05 15:31:40 UTC
Could this be related to 93156 ?
Comment 4 iwtpoo 2012-10-05 17:37:30 UTC
... both bugs might have (a) common root(s), but the other report seems to be quite different. 
I cannot yet manage to create a document, which always shows the bug ... :-(
Comment 5 Lutz.Weischer 2013-05-09 12:12:34 UTC
Incidentally I noticed more of the wrong behavior. 
Imagine you have 2 footnotes right behind each other and both have the string to replace, for example 'TOREPLACE'. When you search for it, the string is marked. If I replace it goes wrong. If I add a letter (for example just 'x') behind TOREPLACE, the paste avoids the problem. 
Again, if I have the 2 footnotes ... If the replacement works fine for the first footnote, when doing this for the 2nd footnote, the erroneous adding is done for the first footnote ... but: If I do an Undo both insert disappear, another paste works without the error. 
Therefore: The Undo knows about 2 operations!
Comment 6 farmerj2013 2014-10-06 23:39:02 UTC
I tested this bug on Windows 7 Professional Service Pack 1 build number 1130. I also tested this bug using OpenOffice 4.0.1 and 4.2.0. I was able to replicate this bug on both versions, but under one condition not specified by the original poster. I had to select the text to be replaced using multiselection (hold CTRL while clicking on text to be replaced). The steps I followed to replicate the bug are as follows:

1. Open blank OpenOffice Writer document
2. Type two words, separated by a space ("Blah Blah")
3. Highlight Blah, and copy to clipboard (Press CTRL+C)
4. Multi-select both "Blah"'s (click on them while holding CTRL)
5. Paste Blah from clipboard (Press CTRL+V)
You will notice either "BlahBlah Blah" or "Blah BlahBlah", the second Blah will be appended to whichever "Blah" you selected last. 

The only way I could get this bug to work was following the steps above, otherwise it would just copy and paste once. For example if I:
1. Open blank OpenOffice Writer document
2. Create a line of text.
3. Copy the text to clipboard (CTRL+C)
4. Paste the text from clipboard (CTRL+V)
No matter where I paste the text, if I am not using multiselect than it only pastes once.
Comment 7 farmerj2013 2014-10-06 23:40:26 UTC
*Correction to the previous, it was build 4.1.1
Comment 8 soccercars 2016-10-01 05:54:25 UTC
I have not been able to replicate this bug on Mac OS X.
The following steps were done:
1.	Open new OpenOffice Writer document
2.	Type multiple words and sentences on different lines
3.	Copied selected text by CTRL+C
4.	Pasted this throughout various parts of the document by CTRL+V
5.	Saved and closed the document
6.	Reopened document 
7.	Repeated steps 2 and 3
While doing this copying and pasting, no duplicate text was found.
Comment 9 Keith McFall 2016-10-14 20:28:07 UTC
I was able to reproduce this issue based on the information provdided in the comment by farmerj2013@my.fit.edu.

Steps to Reproduce
1. Create a new writer document
2. Enter the following words with a space between each word.
	One Two Three Four


3. Select the first word 'One' by double-clicking on the word with your moust or touchpad and the hold down CTRL
4. While still holding down CTRL double-click the other three words in sequence (i.e. one after the other)
5. Without deselecting the already selected 4 words hit CTRL-C and CTRL-V or equivalent for your platform.
--> As a result the following will be pasted over the original.
OneTwoThreeFour OneTwoThreeFour OneTwoThreeFour OneTwoThreeFourOneTwoThreeFour

Basically for each selection that you originally made (in this case four) you will get 4 Versions of what you selected where the last word is doubled.
This can happen starting with at least two word selections as described above.

Here are some examples.
One Two --> OneTwo OneTwoOneTwo 
One Two Three --> OneTwoThree OneTwoThree OneTwoThreeOneTwoThree
One Two Three Four --> OneTwoThreeFour OneTwoThreeFour OneTwoThreeFour OneTwoThreeFourOneTwoThreeFour
Comment 10 Keith McFall 2016-10-14 20:32:34 UTC
Created attachment 85726 [details]
1-TypeFourWords
Comment 11 Keith McFall 2016-10-14 20:33:09 UTC
Created attachment 85727 [details]
2-SelectEachWord
Comment 12 Keith McFall 2016-10-14 20:33:42 UTC
Created attachment 85728 [details]
3-SeeResult
Comment 13 Keith McFall 2016-10-14 20:34:41 UTC
I accidentally hit enter before I entered the attachment information. Here it is

1-TypeFourWords.png --> corresponds to step 2 after typing in 4 words
2-SelectEachWord.png --> corresponds to step 3 and 4
3-SeeResult.png --> corresponds to result of step 5, the result of the paste
Comment 14 Keith N. McKenna 2016-10-14 20:41:04 UTC
(In reply to Keith McFall from comment #9)
> I was able to reproduce this issue based on the information provdided in the
> comment by farmerj2013@my.fit.edu.
> 
> Steps to Reproduce
> 1. Create a new writer document
> 2. Enter the following words with a space between each word.
> 	One Two Three Four
> 
> 
> 3. Select the first word 'One' by double-clicking on the word with your
> moust or touchpad and the hold down CTRL
> 4. While still holding down CTRL double-click the other three words in
> sequence (i.e. one after the other)
> 5. Without deselecting the already selected 4 words hit CTRL-C and CTRL-V or
> equivalent for your platform.
> --> As a result the following will be pasted over the original.
> OneTwoThreeFour OneTwoThreeFour OneTwoThreeFour
> OneTwoThreeFourOneTwoThreeFour
> 
> Basically for each selection that you originally made (in this case four)
> you will get 4 Versions of what you selected where the last word is doubled.
> This can happen starting with at least two word selections as described
> above.
> 
> Here are some examples.
> One Two --> OneTwo OneTwoOneTwo 
> One Two Three --> OneTwoThree OneTwoThree OneTwoThreeOneTwoThree
> One Two Three Four --> OneTwoThreeFour OneTwoThreeFour OneTwoThreeFour
> OneTwoThreeFourOneTwoThreeFour

Keith; What Operating system and version of AOO are you using?
Comment 15 Keith N. McKenna 2016-10-14 20:43:36 UTC
(In reply to soccercars from comment #8)
> I have not been able to replicate this bug on Mac OS X.
> The following steps were done:
> 1.	Open new OpenOffice Writer document
> 2.	Type multiple words and sentences on different lines
> 3.	Copied selected text by CTRL+C
> 4.	Pasted this throughout various parts of the document by CTRL+V
> 5.	Saved and closed the document
> 6.	Reopened document 
> 7.	Repeated steps 2 and 3
> While doing this copying and pasting, no duplicate text was found.

Can you try again using the ctrl Click method to select the text and also report what version of macOS and AOO that you are using?
Comment 16 Keith McFall 2016-10-14 20:47:32 UTC
(In reply to Keith N. McKenna from comment #14)
> (In reply to Keith McFall from comment #9)
> > I was able to reproduce this issue based on the information provdided in the
> > comment by farmerj2013@my.fit.edu.
> > 
> > Steps to Reproduce
> > 1. Create a new writer document
> > 2. Enter the following words with a space between each word.
> > 	One Two Three Four
> > 
> > 
> > 3. Select the first word 'One' by double-clicking on the word with your
> > moust or touchpad and the hold down CTRL
> > 4. While still holding down CTRL double-click the other three words in
> > sequence (i.e. one after the other)
> > 5. Without deselecting the already selected 4 words hit CTRL-C and CTRL-V or
> > equivalent for your platform.
> > --> As a result the following will be pasted over the original.
> > OneTwoThreeFour OneTwoThreeFour OneTwoThreeFour
> > OneTwoThreeFourOneTwoThreeFour
> > 
> > Basically for each selection that you originally made (in this case four)
> > you will get 4 Versions of what you selected where the last word is doubled.
> > This can happen starting with at least two word selections as described
> > above.
> > 
> > Here are some examples.
> > One Two --> OneTwo OneTwoOneTwo 
> > One Two Three --> OneTwoThree OneTwoThree OneTwoThreeOneTwoThree
> > One Two Three Four --> OneTwoThreeFour OneTwoThreeFour OneTwoThreeFour
> > OneTwoThreeFourOneTwoThreeFour
> 
> Keith; What Operating system and version of AOO are you using?

Hi I was just about to add that. I keep accidentally hitting enter and saving my changes before I am finished. 
OS = Windows 7 Enterprise
Version = Open Office Writer 4.2.0 Beta
          AOO420m1(Build:9800)  -  Rev. 1761251
Comment 17 Keith N. McKenna 2016-11-03 19:52:57 UTC
Confirmed by numerous reporters.