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 507342 - Unable to copy/past chart
Unable to copy/past chart
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.8.x
Other All
: Normal normal
: ---
Assigned To: Emmanuel Pacaud
Jody Goldberg
: 507961 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-04 20:17 UTC by J.H.M. Dassen (Ray)
Modified: 2008-01-25 00:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (547 bytes, patch)
2008-01-06 09:06 UTC, Jean Bréfort
none Details | Review
new patch (616 bytes, patch)
2008-01-21 07:30 UTC, Jean Bréfort
none Details | Review

Description J.H.M. Dassen (Ray) 2008-01-04 20:17:09 UTC
Please describe the problem:
The following was originally reported as http://bugs.debian.org/459218

Steps to reproduce:
- run gnumeric to get an empty sheet
- type 1, 2, 3, 4 in a 2x2 line/row (or any other values...)
- select this 2x2 area
- click on menu 'Insert' -> 'Chart'
- click on 'Insert' button (defaults are fine, you can change if you
  want)
- select a area in the Sheet where the Chart will be drawn
- select the Chart (it should be already selected but...)
- click on menu 'Edit' -> Copy
- click on menu 'Edit' -> Paste

Actual results:
  => Nothing appeared (no copy of the Chart)

Expected results:
That a copy of the chart is pasted.

Does this happen every time?
Yes

Other information:
Note:
- if you Cut instead of Copy, you cannot paste the Chart
- this bug is not present in the current testing gnumeric (1.6.3-6): I
  tried to downgrade and successfully made the copy of the Chart I wanted
  to do
Comment 1 Jean Bréfort 2008-01-05 21:39:39 UTC
Graphs can still be copied to abiword.
Comment 2 Jean Bréfort 2008-01-06 09:00:04 UTC
Seems Jody broke that, see: http://svn.gnome.org/viewvc/gnumeric/trunk/src/clipboard.c?r1=16223&r2=16237

Jody, clipboard.c:244, the != seems strange to me, feeling it should be ==. If the object is not a comment, why test the PASTE_IGNORE_COMMENTS_AT_ORIGIN flag?

Seems this bug which affects copying all objects which are not comments come from the fix to #503392.
Comment 3 Jean Bréfort 2008-01-06 09:06:56 UTC
Created attachment 102261 [details] [review]
proposed patch

Not sure this patch does not reintroduce #503392. Please review.
Comment 4 Jean Bréfort 2008-01-08 05:42:34 UTC
*** Bug 507961 has been marked as a duplicate of this bug. ***
Comment 5 Morten Welinder 2008-01-16 17:51:08 UTC
That condition is funky, both in the new and old version.
We should check the object type at the outer if, not the flags.
Comment 6 Jean Bréfort 2008-01-21 07:30:33 UTC
Created attachment 103306 [details] [review]
new patch

Is this one better? I'd really like this one to be fixed before 0.8.1.
Comment 7 Morten Welinder 2008-01-25 00:04:59 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.