Bug 115000

Summary: Style inherit is not properly saved when created (but it does at second save)
Product: LibreOffice Reporter: Pierre C <pierre.choffardet>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: 79045_79045, jalojo, jumbo4444, pierre.choffardet
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:

Description Pierre C 2018-01-14 11:33:07 UTC
Step to reproduce 
1 - Create a new Draw file
2 - Create a new style "Line" for example
3 - create a child style "Line red" for example
4 - I, the style an formatting view, hierarchical being selected you should see :

Standard
 |__ Red
    |__ Line red

5 - Save & close doc
6 - Open doc, look at style an formatting view, you see :

 Standard
 Red
 Line red

Experted behaviour

It should be as step 4

Reproducible on many Lo versions an AOO 4
Comment 1 Laurent Balland 2018-01-15 21:51:40 UTC
Confirmed with:
- Version: 5.4.4.2
Build ID: 2524958677847fb3bb44820e40380acbe820f960
Threads CPU : 8; OS : Linux 4.10; UI Render : par défaut; VCL : gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
- Version: 6.0.0.2
Build ID: 06b618bb6f431d27fd2def25aa19c833e29b61cd
Threads CPU : 8; OS : Linux 4.10; UI Render : par défaut; VCL: gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 2 Laurent Balland 2018-01-15 21:58:41 UTC
The bug appears if you create inheritance with a style which did not exist when file was opened.
1. Create new drawing
2. Create new style
3. Save doc (but no reload)
4. Create inherited style from new style

Inheritance will be lost. 

If on step 3, file is reloaded, inheritance will be kept.
Comment 3 Roman Kuznetsov 2018-06-23 11:07:34 UTC
seems as duplicate of bug 44774, that fixed for 5.4.6, 6.0.3, 6.1 and more

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