https://bugs.documentfoundation.org/show_bug.cgi?id=172128

            Bug ID: 172128
           Summary: Resetting style inheritance introduced by Bug 89826
                    can cause reverse style inheritance
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Bug 89826 introduced the ability to reset individual style properties within
paragraph styles. However, resetting styles configured with this feature can
cause style inheritance to behave in reverse order. Instead of child styles
inheriting from parent styles, parent styles may inherit properties from their
child styles.

If the dialogue is opened from a grandchild style such as "Heading 1", the Edit
button is clicked, and the dialogue is then closed (regardless of whether
Apply, OK, or Cancel is used), some properties of "Default Paragraph Style" are
overwritten with properties from its child style. After saving and reloading
the document, the incorrect inheritance is actually applied and can be easily
confirmed.

In addition, once this issue occurs, resetting the Default Paragraph Style
using the "Reset to Parent" button and saving the document does not resolve the
problem. After reloading, "Default Paragraph Style" again inherits properties
from its child style. Ctrl+M also has no effect.

Steps to Reproduce:
1. Enter "Paragraph 1" in the first paragraph, "Paragraph 2" in the second
paragraph, and "Paragraph 3" in the third paragraph.
2. Apply "Default Paragraph Style" to the first paragraph, "Heading" to the
second paragraph, and "Heading 1" to the third paragraph.
3. Open the dialogue for "Heading 1" via Sidebar -> Styles -> Paragraph Styles.
4. Go to General -> Contains.
5. Click the Edit button.
6. Close the dialogue by clicking either OK or Cancel.
7. Save the document.
8. Go to Menu -> File -> Reload.

Actual Results:
The first and second paragraphs are displayed with the same formatting.

Expected Results:
The first, second, and third paragraphs should each retain their respective
formatting.
In other words, "Heading" should inherit properties from "Default Paragraph
Style", and "Heading 1" should inherit properties from "Heading", while
"Default Paragraph Style" should not inherit from any other style.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 38ea6c42fd0bfdb0904d182627229cf224c1b822
CPU threads: 8; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster;
VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded Jumbo

Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: a9433c872b79f887e7faeed35d5e90739c5cd3e9
CPU threads: 8; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster;
VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded Jumbo

Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 9ed2065ed28d6b31b29381c62d4eb08b439df40c
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster;
VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded Jumbo

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to