Bug 115714

Summary: Does not save hierarchy of drawing styles if save and reopen new ODG file
Product: LibreOffice Reporter: Roman Kuznetsov <79045_79045>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: major CC: ilmari.lauhakangas, vanderson, xiscofauli
Priority: medium Keywords: dataLoss
Version: 6.0.0.3 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: view before save and reopen file
view after save and reopen file
File ODG after reopen

Description Roman Kuznetsov 2018-02-14 11:53:04 UTC
Description:
All options, which are inherited in child styles from parent style, are dissapear, because Draw doesn't save hierarchy of drawing styles, when you save and reopen file ODG. After reopen file all child styles move to level of parent style

Steps to Reproduce:
1. Open new Draw document
2. Create a new style with name "Parent" with your options (fill area, line, font , etc). Select on tab "Organize", Inherit from: None
3. Create a new style "Child", that will have one different option from the style "Parent" (for example, another color of fill area). Select on tab "Organize", Inherit from: "Parent"
4. Draw two figures and apply our new styles Parent and Child to each of them
5. Save file and close all open module of LibreOffice.
6. Reopen file. Figure with style "Child" changed own view, because dissapears hierarchy of styles (see both sreenshot and file from attach) 

Actual Results:  
hierarchy of drawing styles does not save if you save and reopen file

Expected Results:
hierarchy of drawing styles is stable forever


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36
Comment 1 Roman Kuznetsov 2018-02-14 12:09:54 UTC
Created attachment 139901 [details]
view before save and reopen file
Comment 2 Roman Kuznetsov 2018-02-14 12:10:36 UTC
Created attachment 139902 [details]
view after save and reopen file
Comment 3 Roman Kuznetsov 2018-02-14 12:11:29 UTC
Created attachment 139903 [details]
File ODG after reopen
Comment 4 Buovjaga 2018-03-07 12:24:54 UTC
Repro.

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 856c57f20f9b07c686a854e0ccbb6ee3b0ee4791
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 7th 2018

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)

But I found a duplicate (inheriting was called linking before)

*** This bug has been marked as a duplicate of bug 44774 ***