Bug 152277 - The style filtering method is not remembered across sessions
Summary: The style filtering method is not remembered across sessions
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 152681 (view as bug list)
Depends on:
Blocks: Sidebar-Styles-Filter
  Show dependency treegraph
 
Reported: 2022-11-28 20:41 UTC by goodguy00@zoho.com
Modified: 2024-09-15 17:55 UTC (History)
3 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 goodguy00@zoho.com 2022-11-28 20:41:59 UTC
Description:
docked styles in sidebar. setting anything else but 'hierarchical' works fine (eg 'custom styles'), after closing writer and reopening, it kept the state. but after changing to 'hierarchical' (close and reopen writer), another filter is not remembered anymore. writer will always show 'hierarchical'.

Steps to Reproduce:
1. open writer, set styles filter to 'hierarchical', close writer
2. open writer, set styles filter to 'custom styles', close writer
3. open writer, it will show filter 'hierarchical'

Actual Results:
after ever chaning styles filter to 'hierarchical', it will never remember a different filter setting
(this has been working fine in previous versions, but since some time (and i can't remember what version) it doesn't anymore)

Expected Results:
remember the filter set, eg 'custom styles'


Reproducible: Always


User Profile Reset: No

Additional Info:
fortunately, file registrymodifications.xcu is a plain xml-file and can be edited. i pinned it down to
<item oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.text.TextDocument']"><prop oor:name="ooSetupFactoryStyleFilter" oor:op="fuse">
which's value other than '4096' (translates to 'hierarchical') is always set properly, ie '3' translates to 'custom styles' or '5' translates to 'text styles'. once 4096 appears, it's not changed ever again.
==> my workaround: avoid setting 'hierarchical', but once it happens, change the value back to eg. '3' manually in the file. not nice, but i can live with it. it cost me only some time to find out.
Comment 1 Dieter 2022-12-06 16:45:06 UTC
I can't confirm it with

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile (https://wiki.documentfoundation.org/UserProfile) and re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present.
Comment 2 goodguy00@zoho.com 2022-12-13 09:35:24 UTC
i have to be more precise (and yes, i did with a clean, new profile):
1. first open, it shows 'hierarchical'
2. change to 'custom style', close LO
3. open again, it will correctly show 'custom style'
4. change it to 'hierarchical', close LO
5. open LO, change to 'custom style', close LO
6. from now on, when opened, LO it will always show 'hierarchical', no matter what you put that selector to.
last test done on:
Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL
Comment 3 Dieter 2022-12-13 10:08:56 UTC
Can't confirm with

Version: 7.5.0.0.beta1 (X86_64) / LibreOffice Community
Build ID: 3aca23eec42e9d6fbe57071d7633ae1fc4bc5fcc
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded

and steps from comment 2. Perhaps only in Linux?
Comment 4 goodguy00@zoho.com 2022-12-25 18:10:54 UTC
just tried and found still present in:

Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 4; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-CH (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 5 Dieter 2022-12-27 05:57:55 UTC
*** Bug 152681 has been marked as a duplicate of this bug. ***
Comment 6 Kees Kriek 2022-12-27 07:24:09 UTC
I can confirm this bug

The styles on The Styles deck of the Sidebar can be viewed in different ways, like Hierarchical, All Styles, Custom Styles and so on. When you change the view in another type, like All Styles and you restart LibreOffice, it is in Hierarchical again.

Steps to Reproduce:
1.Open a document in LibreOffice Writer
2.Open the Styles Deck on the Sidebar
3.Change the view at the bottom of the Styles list in All styles (for example)
4.Close LibreOffice
5.Open LIbreOffice Writer and the document again.

Actual Results:
The view is in Hierarchical again

Expected Results:
It should be in the last changed view, in this case All Styles.
Comment 7 Dieter 2022-12-27 07:25:39 UTC
(In reply to Kees Kriek from comment #6)
> I can confirm this bug

=> Status NEW
Comment 8 Buovjaga 2024-09-15 17:55:45 UTC
I repro with 7.5, but not in master, so let's close.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fb39ae1bc7e4b1cbfc3108efca52ec310faf7363
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 14 September 2024