Issue 113040 - style parent link is not saved in some cases
Summary: style parent link is not saved in some cases
Alias: None
Product: Draw
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.2.1
Hardware: PC All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2010-07-08 21:34 UTC by Joe Smith
Modified: 2013-02-05 15:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description Joe Smith 2010-07-08 21:34:50 UTC
Steps to reproduce:

1) File > New > Drawing
2) Format > Styles & Formatting
3) In Stylist: Right-click "Default" > New
    Name: _Base
    Line > Arrow styles > Style: Arrow
4) Right-click "_Base" > New
    Name: _Child
    Linked with: _Base
    Line > Line properties > Color: Light Blue
5) Create a line
6) Apply style "_Child"

The line should have properties from both _Base and _Child: a blue line with

7) File > Save
8) File > Reload

The line should be the same; instead it has only the properties set in the
_Child style (blue, no arrow).

9) Right-click "_Child" > Modify
    see: Linked with: -none-
    set: Linked with: _Base
10) File > Save

File > Reload is now OK.

If I compare styles.xml between the two saved files (#7, #10), I get this:

$ diff step7_styles_xml step10_styles_xml
<     <style:style style:name="_5f_Child" style:display-name="_Child"
>     <style:style style:name="_5f_Child" style:display-name="_Child"
style:family="graphic" style:parent-style-name="_5f_Base">

I checked 3.2, 3.1.1, 3.0.1 and 2.4.2--they all showed the same problem. Clearly
this must depend on some unusual circumstance or it would be reported before
now. Maybe it only affects the first save.
Comment 1 Karsten Sperling 2012-03-08 22:01:16 UTC
I just ran into this issue in OO Draw 3.2.0. Style linking information doesn't appear to be saved at all, making hierarchical styles unusable.
Comment 2 Joe Smith 2013-02-05 15:57:22 UTC
Re-tested with nightly

AOO350m1(Build:9611)  -  Rev. 1442201

Problem still exists following steps in description.