https://bugs.documentfoundation.org/show_bug.cgi?id=99969
--- Comment #4 from Seraphime Kirkovski <[email protected]> ---
After some more tests, I think the problem is more profound than the simple
copy-paste. I forced libreoffice to name the default sheet "Sheet2" and
repeated the test procedure. LO failed to copy the chart from Sheet2 as long as
it kept its name. When I renamed it "Sheet1", it worked. Renaming it back to
"Sheet2", the problem was still there. There must be either some initialization
( maybe subscribing to some global object ?) done for the first sheet, which
isn't done for any other sheet. I don't know that part of the code, but if the
binding is done using the name of the sheet, this can explain why reaming it
back to its default name breaks things.
The more I look at this, the more I think the real bug is that from a renamed
chart the copy-paste is successful because the data link is broken between data
cells and the chart even if I copy the data cells. It is completely logical to
bind the chart to its data if there are cells selected with the chart.
If one wishes to copy only the chart, one can simply click on it and copy it,
one needn't select any cells.
But if one wishes to copy an editable chart without its data, I think it is
completely logical to have an empty chart. Maybe to fix this "bug", we should
break copy-paste of a renamed chart ?
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs