Bug 166716 - When selecting a style in the styles sidebar, the selection changes back to the style under the cursor
Summary: When selecting a style in the styles sidebar, the selection changes back to t...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Sidebar-Styles
  Show dependency treegraph
 
Reported: 2025-05-25 09:07 UTC by Cutter
Modified: 2025-05-27 05:34 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 Cutter 2025-05-25 09:07:57 UTC
Description:
After clicking a style in the Styles sidebar, the selection immediately changes back to the style under the cursor in the document. I cannot edit a style unless it is already used.

Steps to Reproduce:
1. Start a blank document
2. Type some text and set its style to Heading 1
3. In the Styles sidebar, right-click Heading 2.

Actual Results:
The selection immediately changes to Heading 1.

Expected Results:
The selection stays on Heading 2.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
OS: Fedora 42, Gnome, gtk3.
Occurs in safe mode also.

Version: 25.2.3.2 (X86_64)
Build ID: 520(Build:2)
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 1 Dieter 2025-05-25 14:55:09 UTC
I can't confirm with

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 3158b14e0b26875300a8098bc117a5e69b76f48f
CPU threads: 12; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

So perhaps fixed in latest version or only a Linux issue.
Comment 2 Jeremy Norvell 2025-05-25 21:48:30 UTC
Thank you for reporting the bug. I attempted this in Mint MATE to see if I had a different experience than the previous tester. Unfortunately, I can not reproduce the bug in either of the versions of LibreOffice listed below.

In my testing "heading 2" remained selected on right-click and choosing "Edit Style". 

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 866538a4aeb30a598a6ede3d1763d898eb1920b0
CPU threads: 2; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 2; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.4
Calc: threaded
Comment 3 Cutter 2025-05-26 10:28:56 UTC
The bug can be reproduced on a live session of Fedora 42 (Gnome). It doesn't occur on Fedora 42 KDE.
Comment 4 Saburo 2025-05-26 14:57:19 UTC
Left-clicking selects Heading 2, but after a few seconds it moves to Heading 1.

reproduced with
Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded

Reproduced on linux-64-25.2 oldest
Not reproduced on linux-64-24.8 master

Ubuntu 24.04LTS
Comment 5 BogdanB 2025-05-26 16:49:12 UTC
I tried with right click - edit style. What I supose is happening: We select Heading 2, but after exisiting the Edit style window, the cursor is in the paragraph with Heading 1, so it is showing where the cursor is in.


I can reproduce also on
Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 21c5006f2e973c1d62085de29c3f4240dce1a4ff
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

And also in
Version: 25.2.3.1 (X86_64) / LibreOffice Community
Build ID: d8d1af5f77df955194e52baabe19324532ac8e8b
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 6 Cutter 2025-05-26 17:37:38 UTC
(In reply to BogdanB from comment #5)
> I tried with right click - edit style. What I supose is happening: We select
> Heading 2, but after exisiting the Edit style window, the cursor is in the
> paragraph with Heading 1, so it is showing where the cursor is in.

In my case the selection changes verty quickly, before I click on "Edit style...", so the dialog opens for the erroneously selected style.
Comment 7 Buovjaga 2025-05-27 05:34:25 UTC
Bibisected with linux-64-25.8 to 6042e60d69c40d1f307710e60a278cb286d68603
tdf#164745 fix SfxStateCache