Bug 99752 - FILEOPEN: Impress/Draw ODF open; style's parent style is lost for grandsons
Summary: FILEOPEN: Impress/Draw ODF open; style's parent style is lost for grandsons
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ImpressDraw-Styles
  Show dependency treegraph
 
Reported: 2016-05-09 21:05 UTC by DaniM
Modified: 2023-05-11 12:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DaniM 2016-05-09 21:05:58 UTC
This bug seems related to bug 80020 (already fixed):
https://bugs.documentfoundation.org/show_bug.cgi?id=80020

Steps to reproduce

1 create a new presentation
2 create a new son style, inheriting from a style already present when opening the file: it can be son of Default, or of any other one (Text, ...). 
3 create a new son style, inheriting from that new son (grandson).
4 save presentation

5 reopen presentation ==> grandson inheriting lost

It may be that fix for 80020 was not complete (was only fixed for direct sons): if this bug is considered a duplicate of that bug, that one should be reopened.

Reproduced on Impress/Draw 4.2.8.2 (Ubuntu 14.04), but also on more recent versions and OS (LO 5.1 on Win7, LO 4.3 on Mac).

Workarounds:
- Avoiding the bug: After creating a son and before creating a grandson, save and reopen. Creating the grandson of that particular son is now protected, because the grandson is a direct son of a style already present when opening.
- Correction after the bug occurs: if inheritance is lost, fix it once, then reopen. It won't happen again for these grandsons.

Note: fix of this bug should also cover grand-grandsons, etc.
Comment 1 Buovjaga 2016-05-13 06:52:08 UTC
Repro with graphic styles. Grandson style disappears!

Win 7 Pro 64-bit Version: 5.2.0.0.alpha1+
Build ID: 3d27afd26f7b85c46a7c7d08498000b9dbcea1c8
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-05-09_02:42:15
Locale: fi-FI (fi_FI)
Comment 2 QA Administrators 2017-10-23 14:03:28 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2021-10-22 03:46:28 UTC Comment hidden (obsolete)
Comment 4 Roman Kuznetsov 2023-05-11 12:40:49 UTC
No repro in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2d0a87f97e2c9ac50cd6ce329ca8256daf94ead4
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded

closed as WFM