Bug 35918

Summary: Undo of pasting several columns results in un-pasting only one
Product: LibreOffice Reporter: entbuggung
Component: CalcAssignee: Markus Mohrhard <markus.mohrhard>
Status: RESOLVED WORKSFORME    
Severity: normal CC: LibreOffice
Priority: medium    
Version: 3.3.1 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard: target:3.4
Crash report or crash signature: Regression By:

Description entbuggung 2011-04-02 21:16:10 UTC
Reproduce this bug as follows:

1. Enter content in A1 and B2.
2. Select the whole length of the columns A and B by clicking on their column headers.
3. Press Ctrl+C to copy column content.
4. Select column C by clicking its header.
5. Press Ctrl+V to paste column A and B contents to columns C and D
6. Press Ctrl+Z to undo pasting.
7. Behold, for the pasting shall not be undone in column D, only in column C!

Otherwise a good product, love to use it, thank you guys!
Comment 1 Rainer Bielefeld Retired 2011-04-02 23:20:11 UTC
[Reproducible] with "LibreOffice 3.3.2  – WIN7  Home Premium  (64bit) German UI [OOO330m19 (Build:202 / tag 3.3.2.2)]"

Important for the problem is step 4 of report. If you simply click into cell 'C1' undo will work correctly

Copy / Paste / Undo of rows does not show a similar problem.

Corresponding or similar OOo Bugs:
<http://openoffice.org/bugzilla/show_bug.cgi?id=113553>
 Spreadsheet Undo: Undo misses columns when undoing certain multi-column copy/paste

<http://openoffice.org/bugzilla/show_bug.cgi?id=107617>
 paste, undo fails when clipboard is row and selection is column  
 (also LibO 3.3.2 is affected)
Comment 2 Kohei Yoshida 2011-04-25 15:41:21 UTC
I'm taking this.
Comment 3 Markus Mohrhard 2011-11-07 16:51:09 UTC
After talking to Kohei, I have a look at this.
Comment 4 Markus Mohrhard 2011-11-07 17:19:32 UTC
seems that I can't reproduce it with a master build, but we might have a different problem now:

we seem to have now some logic that tries to limit the copy area to the used cells and therefore the marked paste area is filled with copies of the used cells

In 3.4 and I suspect 3.3 it only copied the content once.

@Rainer: can you confirm that this problem does no longer happen in 3-4 and master?
Comment 5 Rainer Bielefeld Retired 2011-11-07 22:24:45 UTC
@Markus:
I tried again, problem still [Reproducible] with "LibreOffice Portable 3.3.3  - WIN7  Home Premium (64bit) German UI [OOO330m19 (Build:301  Tag 3.3.3.1)]" 

No longer reproducible with "LibreOffice 3.4.4RC2  - WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:402)]", everything works perfect.

So I close this problem here, modified target because fixed for 3.4

New problem reproducible with Server installation of Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) English UI [(Build ID:  d3d1481-3f8994a-2ba0a9f)]" (110909), I believe that's "Bug 40958 - EDITING: Copy row to clipboard incomplete ... or: pasting copied row to other rows, makes that data in that row is repeated until the last column".