Amazingly, we loose data when we save this guy as flat ods and re-load it. That's crazy ! =) how different can the code-paths be ? and/or what is the chart code doing to (somehow) make that happen. Fun.
Created attachment 100452 [details] test file.
Interestingly when you save as .fods - the chart comes back with a data-table, rather than with spreadsheet / cell references as we'd expect [ so it is no longer live / dynamic ]. That's rather odd. Perhaps there is then a more general problem with copy/paste/conversion to data table here ? Having said that, I managed to copy/paste a very similar chart to impress with no problems. For reference this is a cp-4.2-5 build =)
This is a very old problem, a known problem really. Doing the same in 3.5 reproduces it.
This is a hard problem to solve, mostly because flat ODF breaks the assumption that the embedded object code makes, and fixing it will require full understanding of how this embedded object framework works. Anyway, I ran out out of time this week. I'll tackle again next week.
I finally figured this out. Fix on the way.
Still struggling with writing a test for this. Maybe better luck tomorrow.
Test is now good, but now make check massively fails. :-(
Kohei Yoshida committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c5539bb585370f095cb6c09e38a7dd005d237295 fdo#79676: Initialize with a default chart only from the UI. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=9455b4eb4b0ca3909941f8f394afc509d041f860 fdo#79676: Write unit test for this. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d44b58beed743871df03909e7d9545e488f3d7c8 fdo#79676: Fix the Java UNO API test with regard to chart tests. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "libreoffice-4-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=486bf19009d2c737dd7bb822f534aaa47dbe9d6e&h=libreoffice-4-3 fdo#79676: Initialize with a default chart only from the UI. It will be available in LibreOffice 4.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "libreoffice-4-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=215ccea6a5085096540a9a14f6c6c9c06a84bf95&h=libreoffice-4-3 fdo#79676: Write unit test for this. It will be available in LibreOffice 4.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "libreoffice-4-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b72371aeb34288e40cdd082e387cf54593c8d111&h=libreoffice-4-3 fdo#79676: Fix the Java UNO API test with regard to chart tests. It will be available in LibreOffice 4.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The fix is too invasive to backport to 4.2. I'll call this fixed in 4.3.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0e3826d08d7a7d54dd532319fb584008eb0e24c8&h=libreoffice-4-2 fdo#79676: Initialize with a default chart only from the UI. It will be available in LibreOffice 4.2.7. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d19c216f191ca13b7895b69cd5790d526aec2bb5&h=libreoffice-4-2 fdo#79676: Fix the Java UNO API test with regard to chart tests. It will be available in LibreOffice 4.2.7. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 67097 has been marked as a duplicate of this bug. ***