https://bugs.documentfoundation.org/show_bug.cgi?id=86624

--- Comment #35 from Janek M <[email protected]> ---
I've done some debugging and found the following results:

1) creating a chart with arbitrary location of the legend; and saved it to
.ods.
2) I've unzipped the .ods file
3) I've examined ~/Object 1/content.xml

there's a tag <chart: legend svg:x="XVALUE" svg:y="YVALUE" ...
it seems that XVALUE and YVALUE contain the correct legend's location, in cm.

Then I've reopened the .ods file and the legend moved to top-left corner of the
chart.

4) I've resaved the incorrect location of the legend into a new .ods file
5) I've unzipped the new .ods file
6) examining ~/Object 1/content.xml

The XVALUE and YVALUE are not both set to zero (since the legend was in the
top-left corner).

My conclusion is that since the XVALUE and YVALUE were properly saved, the
problem is during opening of the .ods file.


Also. If I use one of the presents (top, bottom, left, right) for the legend
position the content.xml file has chart:legend-position="MYPOSITION".

8) Then if I manually edit content.xml to change "MYPOSITION" to "MYPOSITION2"
9) rezip the files back to .ods file
10) opening the newely zipped .ods file in Calc properly reflects MYPOSITION2
for the legend.

This further concludes that during the opening Calc has trouble parsing the
svg:x="XVALUE" and svg:y="YVALUE" values. But it has no trouble parsing
chart:legend-position="POSITION" when top/bottom/left/right is used.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to