Bug 169597 - Paragraph and Character Style "Reset to Parent" Button Neither Clears "Contains" List Nor Alters Style to That of Parent
Summary: Paragraph and Character Style "Reset to Parent" Button Neither Clears "Contai...
Status: RESOLVED DUPLICATE of bug 150543
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-21 17:58 UTC by Matthew Ross
Modified: 2025-11-21 19:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of Misbehaving Dialog (212.36 KB, image/png)
2025-11-21 18:13 UTC, Matthew Ross
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Ross 2025-11-21 17:58:00 UTC
Description:
Pressing "Reset to Parent" in Edit Character Style dialog should 
1) clear all values in General Tab -> Contains Section and
2) make the style appear as its parent does.

However, it does neither.  


Steps to Reproduce:
1. Create custom style "My Heading": F11 -> Right Click in Whitespace of "Styles Sidebar" -> New -> Name "My Heading"; Inherit From "None"  -> OK
2. Create custom style "My Heading 1" as Child: F11 -> Right Click in Whitespace of "Styles Sidebar" -> New -> Name "My Heading 1"; Inherit From "My Heading"  -> OK
3. Apply "My Heading 1" to some text: Highlight some text -> Double click "My Heading 1"
4. Confirm "My Heading 1" is applied to the text: Click "Spotlight" and confirm that text receives a colored flag corresponding to the colored flag in Styles sidebar for "My Heading 1" 
5. Change Child "My Heading 1" in some way.  For example: Right click "My Heading 1" -> Edit -> Font Tab -> Size -> 21pt -> Apply -> OK
6. Observe that the text changes to 21 point font
7. Observe that child style specifies 21 point in its "Contains" list: Right click "My Heading 1" -> Edit Style -> General Tab -> "Contains" Section reads "Western text: 21pt".  Don't close the dialog.
8. Attempt to rest the child style to parent: In same dialog and same tab click "Reset to Parent".  Click "Apply"

Actual Results:
Nothing happens.  The text to which child style "My Heading 1" is applied does not change.  The "Contains" section does not change.

Expected Results:
The text to which child style "My Heading 1" is applied reverts to parent "My Heading" styling.  The "Contains" section becomes empty.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 24; OS: Windows 11 X86_64 (build 26100); UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 Matthew Ross 2025-11-21 18:13:58 UTC
Created attachment 204183 [details]
Screenshot of Misbehaving Dialog
Comment 2 Matthew Ross 2025-11-21 18:42:48 UTC
Changing Hardware of this bug to "All" from "Windows" because I tested it on the same version after Factory user profile reset on Ubuntu and found the same behavior.
Comment 3 Matthew Ross 2025-11-21 19:12:29 UTC
Actually, the behavior might be correct.  When I do "Steps to Reproduce" below, it works as I expect if I'm on a particular tab other than "General".  For example, if I select "Font" tab AND THEN click "Reset to Parent", the font-related properties properly reset to parent and disappear from the "General" tab "Contains" section.

Currently thinking it's NOT a bug, but a slightly confusing UI and oddly documented behavior.  Not sure what bug status to select in that case.  Thoughts?

For now just glad I can do what I need to do.
Comment 4 Regina Henschel 2025-11-21 19:42:08 UTC
Yes, the user interface could be improved. The problem is already reported in bug 150543.

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