After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 381732 - [win 32] pasting large selection from XCEL2002 to gnumeric --> pasted area inconsistent
[win 32] pasting large selection from XCEL2002 to gnumeric --> pasted area in...
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
1.7.x
Other Windows
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 335348 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-02 23:08 UTC by A
Modified: 2009-10-16 17:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description A 2006-12-02 23:08:34 UTC
Please describe the problem:
i am cutting large areas of data from excel files to gnumeric files. the selections are 9 columns x aproximately 18000 rows. Upon pasting into the gnumneric file, there are 2 blank lines added where I pasted the data, like this:

<BLANK LINE>
<BLANK LINE>
<DATA>

Steps to reproduce:
1. cut and paste a large ammount of data



Actual results:
2 extra lines are pasted

Expected results:
just my data would be pasted

Does this happen every time?
for the few files I have done so far, yes

Other information:
Comment 1 A 2006-12-02 23:40:28 UTC
just figured something out. what I am doing is cutting all but the first two lines  in the excel files. the paste area in gnumeric is equal to the size of the entire excel file. so, if I cut all but the first 3 lines there will be 3 blank lines pasted before my selection, etc...
Comment 2 A 2006-12-03 00:04:20 UTC
i should note that it a tab delimited file
Comment 3 Morten Welinder 2006-12-03 14:03:36 UTC
Could you please test whether this happens for small files too?  This
kind of behaviour really shouldn't depend on data amounts.
Comment 4 A 2006-12-05 18:33:47 UTC
you are right, looks like it is any excel file. what I did:

open excel v.2002 (10.2614.2625)
input something in cell C22
highlight only C22
cut
paste into gnumeric cell A1

RESULT:
cell is pasted into position C22 of the gnueric file and range A1:C22 is highlighted

EXPECTED:
paste into A1
Comment 5 Andreas J. Guelzow 2007-05-24 19:48:15 UTC
Since this has to do with copying from Excel v. 2002 it is clearly an MS Windows specific issue.
Comment 6 A 2008-07-24 22:20:22 UTC
just noticed this still seems to happen with the latest and greatest excel version 2008, I believe it is.
Comment 7 sum1 2009-02-06 19:02:50 UTC
I can still reproduce the issue in comment 4 with gnumeric-1.9.4-20090205-debug.exe and Excel 2003.  It looks like the Biff8 target is being used and the Excel importer interprets the cell as a range somehow.  Let me know if I can help debug this further.


291     in gui-clipboard.c
(gdb) p r.start.col
$5 = 0
(gdb) p r.end.col
$6 = 2
(gdb) p r.start.row
$7 = 0
(gdb) p r.end.row
$8 = 21
(gdb) bt
  • #0 table_cellregion_read
    at gui-clipboard.c line 291
  • #1 table_content_received
    at gui-clipboard.c line 359
  • #2 selection_received
    at gtkclipboard.c line 859

Comment 8 Morten Welinder 2009-02-06 19:58:52 UTC
It looks like table_cellregion_read assumes that the data being read starts
at A1.

It would be helpful if you had a way of dumping the data.
Try something like

    x /3584x 0x1f17578

(where 3584 is "length" and 0x1f17578 is buffer.)
Comment 9 Morten Welinder 2009-02-06 20:47:37 UTC
Pasted data here (attached to wrong bug):

http://bugzilla.gnome.org/attachment.cgi?id=128112&action=view
Comment 10 Morten Welinder 2009-02-08 21:24:13 UTC
*** Bug 335348 has been marked as a duplicate of this bug. ***
Comment 11 Andreas J. Guelzow 2009-10-15 18:21:17 UTC
Note that this may be the same bug as bug #388531.
Comment 12 Morten Welinder 2009-10-16 17:39:43 UTC
It is the same.  Fixed.