Bug 159610 - Used "Frame Styles" Not Appearing in Styles Sidebar with "Applied Styles" Selected
Summary: Used "Frame Styles" Not Appearing in Styles Sidebar with "Applied Styles" Sel...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Sidebar-Styles
  Show dependency treegraph
 
Reported: 2024-02-07 00:02 UTC by Tex2002ans
Modified: 2024-02-10 21:27 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 Tex2002ans 2024-02-07 00:02:57 UTC
Description:
When there are Frame Styles used inside a document, choosing:

- "Hierarchical" shows them all.
- "All Styles" shows them all.
- "Applied Styles" shows 0.
   - Even if Frames exist and are used within a document.

I first noticed this while debugging another document (+ trying to test new "Spotlight" feature).

Steps to Reproduce:
0. Download attachment #192386 [details] + Open "right.odt".
  - It is a ZIP file with 2 ODTs inside.
  - It uses a Frame Style called "StatBlock-Narrow-Background".

Then:

1. View > Styles (F11)
  - Styles sidebar appears.
2. Along the icons at very top of sidebar:
  - Click "Frame Styles" button.
3. In the dropdown at the very bottom of sidebar:
  - Change from "Hierarchical" or "All Styles" -> "Applied Styles".

Actual Results:
"Applied Styles" has 0 Frame Styles showing.

Expected Results:
"Applied Styles" should show the actual Frame Styles currently used inside the document.

In this specific case:

- StatBlock-Narrow-Background


Reproducible: Always


User Profile Reset: No

Additional Info:
Tested in this version:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

- - -

Note: LO IS seeing/detecting that the Style exists if you have "All Styles" or "Hierarchical" selected.

During Step 3:
   - Choose "All Styles".

4. Inside the document:

- Click on the border of the frame.
- You'll see "StatBlock-Narrow-Background" highlight itself in the sidebar.

So it looks to be detecting fine... just not transferring that information over to the "Applied Styles" version.
Comment 1 Tex2002ans 2024-02-07 00:20:29 UTC
CCing Jim on this (since he does a lot of Styles/sidebar work).

Also adding "Sidebar-Styles" metabug.

- - -

Oh, and Bug #159554 was where I first found it 3 days ago. I was messing with the "ODT file with Frames" that user submitted, and was trying to spot anything strange with the formatting.

- I always have "Applied Styles" on, so when I saw 0 Frames showing, I didn't think anything of it.
   - Maybe thought it was made using Direct Formatting.

When I looked a little closer though, and:

- Flicked on "All Styles"

I saw the user actually DID use Frame Styles.

- - -

I was also able to do this with my own fresh ODT document too:

0. Open fresh ODT.
1. Insert > Frame > Frame Interactively.
2. Drag a rectangle onto the document.
3. View > Styles (F11)
   - To make Styles sidebar appear.
4. Along the icons at very top of sidebar:
  - Click "Frame Styles" button.
5. In sidebar:
   - Right-Click > New...
6. In "Organizer" tab:
   - Give my new Frame Style a name.
   - Press OK.
7. In document:
   - Left-Click/Select my frame.
8. In Styles sidebar:
   - Double-Click on my newly created Frame Style.

Then I could:

- Go from "All Styles" -> "Applied Styles" in the dropdown.

and my newly created Frame Style does not appear either.
Comment 2 m_a_riosv 2024-02-07 00:43:58 UTC
Reproducible
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
+
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4d381b54d1c598c181b4a21a8bf0db86eb4668d1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 3 Jim Raykowski 2024-02-10 21:27:38 UTC
I think this is reproducible using any document that has a frame style applied.
Here is a patch that makes the applied frame styles appear:
https://gerrit.libreoffice.org/c/core/+/163220

Possibly https://gerrit.libreoffice.org/c/core/+/155504 caused a regression here. I haven't checked if the Applied Styles filter ever did show applied frame styes.