Issue 113040 - style parent link is not saved in some cases
Summary: style parent link is not saved in some cases
Status: UNCONFIRMED
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:
URL:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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
    OK
4) Right-click "_Base" > New
    Name: _Child
    Linked with: _Base
    Line > Line properties > Color: Light Blue
    OK
5) Create a line
6) Apply style "_Child"

The line should have properties from both _Base and _Child: a blue line with
arrowhead(s).

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
    OK
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
102c102
<     <style:style style:name="_5f_Child" style:display-name="_Child"
style:family="graphic">
---
>     <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
2013-02-05_04:29:57-Rev.1442466

Problem still exists following steps in description.