GNOME Bugzilla – Bug 507342
Unable to copy/past chart
Last modified: 2008-01-25 00:04:59 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
Graphs can still be copied to abiword.
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.
Created attachment 102261 [details] [review] proposed patch Not sure this patch does not reintroduce #503392. Please review.
*** Bug 507961 has been marked as a duplicate of this bug. ***
That condition is funky, both in the new and old version. We should check the object type at the outer if, not the flags.
Created attachment 103306 [details] [review] new patch Is this one better? I'd really like this one to be fixed before 0.8.1.
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.