GNOME Bugzilla – Bug 705950
wanted to paste a chart to "G21" but pasted on "H22"
Last modified: 2018-05-22 14:02:33 UTC
Created attachment 251556 [details] screenshot https://tsrtesttest.appspot.com/wiki/Gnumeric%20position%20shifts%20at%20copy-pasting%20a%20chart wanted to duplicate a chart. I select cell-G21 and paste the chart but chart created at H22. it's kind of inconvenience.
I seem unable to reproduce.
Created attachment 251635 [details] additional screenshot
Created attachment 251636 [details] gnumeric file being discussed
screen cast https://docs.google.com/file/d/0Bxx8FrCtx3TOMnBtU3BQTkdlVTQ/edit I should mentioned that this phenomenon happens only when the chart is being snapped to grid.
OK, seen it now, but it does not occur if the initial chart is in A1 (that's why I did not see it earlier).
Using the top left chart, I see in the file: <gnm:SheetObjectGraph ObjectBound="E6:H12" ObjectOffset="1 1 1 1" Direction="17" Print="1"> So that chart is anchored to E6 and it is placed relative to the cell at ObjectOffset="1 1 1 1", ie. E6's bottom left corner. So when you copy and paste it it is placed at the bottom left corner of the cell you have selected. At the moment I am unable to create a file like that from within Gnuemric. When I move a chart to the bottom right corner of a cell the anchor switches to the cell tot eh bottom right. So copy/paste behaves as expected. the problem is that the anchor of your chart is located in an unexpected location.
I could easily create a file showing the issue.
Jean, it seems to me that upon snapping to the grid we fail to recalculate the anchor, since I don't think that we should have an ObjectOffset="1 1 1 1".
Note that in the sample file of comment #3, deleting column F also deletes the top right chart. We definitely should not have the chart that far removed from its anchor. Jean, would you please describe how you can create a file showing the issue?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnumeric/issues/230.