Created attachment 55567 [details] Simple drawing with two lines with formats FormatA and FormatB. FormatB originally was linked with FormatA but is not when opening the document again. Hi, LibreOffice Draw loses links between graphic styles when saving/re-opening the document. How to reproduce the error? - create an empty odg document - create a FormatA with some properties, e.g., line color, line width - create a FormatB and link it with FormatA in the organizer of the styles. Now change some of the properties of FormatB, e.g., line end-point. - draw two lines and assign the styles FormatA to the one and FormatB to the other. - save the file and close LibO Draw. - open the file again Now FormatB is not linked anymore with FormatA. It is rather linked with nothing ("None"), not even with the default style. Even the the line formatted with FormatB looks different now. Seems that there is a mistake in managing the styles. This report is based on a LibreOffice 3.4.4 from a Fedora16 distribution. However, I have seen this problem before with OpenOffice but did not report it that time. Thanks for working on LibreOffice. Bernd
btw... sometimes the linking works fine, sometimes not. That's like tossing a coin. I was wondering whether this effect is either related to the alphabetical order of the format names or to the order they are created.
Created attachment 55592 [details] Graphics Style Dialog for FormatB with Organizer of Style
I did some investigations on the odg file looking to the style.xml There, you can find that the error seems to be when writing the file or before. The link <style:style style:name="FormatA" style:family="graphic" style:parent-style-name="standard"> <style:graphic-properties draw:stroke-dash="Dash_20_2" svg:stroke-width="0.07cm" svg:stroke-color="#00ff00" draw:marker-start-width="0.31cm" draw:marker-end="Circle" draw:marker-end-width="0.31cm" draw:fill-gradient-name="Gradient_20_7" draw:fill-hatch-name="Hatching_20_1" draw:fill-image-name="Bitmape_20_1"/></style:style><style:style style:name="FormatB" style:family="graphic"><style:graphic-properties svg:stroke-color="#0000ff" draw:marker-end="Square"/></style:style>
<style:style style:name="FormatA" style:family="graphic" style:parent-style-name="standard"> <style:graphic-properties draw:stroke-dash="Dash_20_2"svg:stroke-width="0.07cm" svg:stroke-color="#00ff00" draw:marker-start-width="0.31cm" draw:marker-end="Circle" draw:marker-end-width="0.31cm" draw:fill-gradient-name="Gradient_20_7" draw:fill-hatch-name="Hatching_20_1" draw:fill-image-name="Bitmape_20_1"/> </style:style> <style:style style:name="FormatB" style:family="graphic"> <style:graphic-properties svg:stroke-color="#0000ff" draw:marker-end="Square"/></style:style> There, you can see that the element for FormatA has an attribute style:parent-style-name while FormatB doesn't provide this attribute at all.
I can reproduce it with the description in #1 on Windows7.
I have a similar issue on linux, but style links are working correctly on my Mac OS laptop.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.