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.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: *Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.1 or later) https://www.libreoffice.org/download/ *If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior *If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT *Update the version field *Reply via email (please reply directly on the bug tracker) *Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-04-01
I have reproduced the bug with Version: 4.5.0.0.alpha0+ Build ID: 16b8fbb2e0c72ce321c9f569284f4ef37339af2c TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-03-10_09:56:13 Locale: de_DE It is still a problem.
Workaround: When you have first created the style, save the document, then use File > Reload. Then link the child style again to the parent style. Save again. Now the linking is kept.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.4.1 or 5.3.6 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170901
*** Bug 115714 has been marked as a duplicate of this bug. ***
The bug is present in the LO 6.0.2 too...
https://gerrit.libreoffice.org/51069
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a8fc81d478f4dcf8600ed9a2b4e0f7adff4a17ee tdf#44774: Parent style's msApiName could yet be empty; use GetApiName() It will be available in 6.1.0. 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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=081f90975f9b001c6cb4fd4ad014b36bcbe8f9bb&h=libreoffice-5-4 tdf#44774: Parent style's msApiName could yet be empty; use GetApiName() It will be available in 5.4.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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1dfb747f3c12881f54c2c826eaf0aaa938883a54&h=libreoffice-6-0 tdf#44774: Parent style's msApiName could yet be empty; use GetApiName() It will be available in 6.0.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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-5-4-6": http://cgit.freedesktop.org/libreoffice/core/commit/?id=2eac99e7da9754b23e5f2a8a5a9c7af063088fdc&h=libreoffice-5-4-6 tdf#44774: Parent style's msApiName could yet be empty; use GetApiName() It will be available in 5.4.6. 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.
verified. fixed in 6.0.3.1 on Windows 10
*** Bug 115000 has been marked as a duplicate of this bug. ***