Bug 45868 - EDITING: Clipboard contents 'Copy' information causes incomplete paste
Summary: EDITING: Clipboard contents 'Copy' information causes incomplete paste
Status: RESOLVED DUPLICATE of bug 46230
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 RC2
Hardware: Other Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
: 46913 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-09 23:57 UTC by Rainer Bielefeld Retired
Modified: 2012-05-11 04:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample Source Document (9.02 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-02-10 00:18 UTC, Rainer Bielefeld Retired
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Bielefeld Retired 2012-02-09 23:57:08 UTC
Steps how to reproduce with "LibreOffice 3.5.0 RC3 German UI/Locale [Build-ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735] on German WIN7 Home Premium (64bit):

0. Download / save attached "samplesource.ods"
1. open "samplesource.ods"
2. Select A1:G10 (with pushed left mouse button, doesn't matter how)
3. <contro+c> for copy (doesn't matter how)
4. Menu 'File -> New -> Text Document'
   > New WRITER document appears
5. <control+v> for paste
   Expected: complete range visible with green and red cell borders, yellow
             ellipse, ...
   Actual: only cells C5:D6 shown, no further contents pasted (check
           OLE object). Same with paste special as GDI metafile, bitmap, ...

Same effect if you paste to WRITER document of a more early version.

Works fine for paste to other spreadsheet or sheet in document.

Still worked fine for copy from 3.5.0 beta1

[Reproducible] with "LibreOffice 3.5.0 RC2 German UI/Locale [Build-ID: e371a95-bf68a13-5a1aa2b-d3c1ae9-b938258] on German WIN7 Home Premium (64bit).

Related to "Bug 40262 - incorrect copy"?
Comment 1 Rainer Bielefeld Retired 2012-02-10 00:18:47 UTC
Created attachment 56850 [details]
Sample Source Document

See original report
Comment 2 Markus Mohrhard 2012-03-03 08:02:50 UTC
Ok, this case is a bit tricky.

We now only copy the area that contains content because otherwise external applications will add a lot of empty cells if you selected a too big area, e.g. a whole row.

Noe the tricky part is what is a non empty cell and right now we calla non empty cell a cell that has cell content, either a value, string, formula or a note.

I'm not sure if this would be a good idea to include empty cells that have a background color since this will again create problems with too large areas where for example the whole sheet is colored. I fear that for this problem we won't find a perfect solution.
Comment 3 Rainer Bielefeld Retired 2012-03-05 21:59:02 UTC
IMHO priority should have to hold predictable and consistent behavior in CALC, and what I see here is very strange and inconsistent, I believe nobody will expect these results.

@Markus:
Fix for what Bugzilla Bug numbers causes problems of this bug?
Comment 4 Rainer Bielefeld Retired 2012-03-05 22:04:38 UTC
*** Bug 46913 has been marked as a duplicate of this bug. ***
Comment 5 Markus Mohrhard 2012-03-06 10:12:01 UTC
(In reply to comment #3)
> IMHO priority should have to hold predictable and consistent behavior in CALC,
> and what I see here is very strange and inconsistent, I believe nobody will
> expect these results.
> 
> @Markus:
> Fix for what Bugzilla Bug numbers causes problems of this bug?

n#677811 and a more recent commit from me.

The problem is that if you copy empty cells and paste them to an external program( writer, mail, ... ) you get more or less a large list of useless data so we only copy the area with content to the copy document.

This is does not affect Calc itself. Calc uses a totally different way to access the copy/paste data which is not related to the way we save data for external use. Calc uses an internal copy/paste document which contains all information that were in the original document.
Comment 6 OfficeUser 2012-03-07 11:34:15 UTC
When can we expect a fixed version. Calc has become unusable!
Comment 7 OfficeUser 2012-03-07 11:35:24 UTC
When can we expect a fixed version? Calc has become unusable!
Comment 8 OfficeUser 2012-03-14 13:24:40 UTC
Why is there no activity on this bug? Basic editing functionality is broken.

The code introducing this bug has to be rejected from the code base asap.

The summary of this bug is bad. All full wor operations like drag&drop, rearrange... do not work anymore!
Comment 9 OfficeUser 2012-03-14 13:25:24 UTC
correction: "full row"
Comment 10 Rainer Bielefeld Retired 2012-03-16 11:14:59 UTC
NEW due to Bug 46913
Comment 11 Markus Mohrhard 2012-03-16 11:50:18 UTC

*** This bug has been marked as a duplicate of bug 46230 ***