https://bugs.documentfoundation.org/show_bug.cgi?id=158179
Bug ID: 158179
Summary: Layer tab popup menu in Draw shows layer visibility
setting of previous selected tab
Product: LibreOffice
Version: 7.6.0.0 alpha0+
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: [email protected]
Reporter: [email protected]
Created attachment 190792
--> https://bugs.documentfoundation.org/attachment.cgi?id=190792&action=edit
file for use to repro bug
Steps to repro this bug:
1. Open the attached Draw file.
2. Right-click on the Layer5 blue colored text tab.
Results: Show Layer (Shift+Click) menu item is checked.
Expected Results: Show Layer menu item is not checked because it is set not
visible (indicated by the tabs blue text color).
3. With the popup menu still showing, right-click on the Layer4 tab.
Results: Popup menu closes as expected.
4. Right-click again on the Layer4 tab.
Results: Show Layer menu item is not checked.
Expected Results: Show Layer menu item is checked because it is set visible.
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e70f5d3db3ad64c3d6a21de998b238bd5d4ac8b5
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
The cause seems to be an issue with how the layer switch command is dispatched
in void LayerTabBar::Select()[1]. Changing the dispatcher execute call mode
parameter argument from SfxCallMode::ASYNCHRON to SfxCallMode::SYNCHRON
produces expected Show Layer menu item results for me.
Including Heiko who did the work for enhancement bug 113439 that added the Show
Layer menu item.
[1]
https://opengrok.libreoffice.org/xref/core/sd/source/ui/dlg/LayerTabBar.cxx?r=9b9159aa#137
--
You are receiving this mail because:
You are the assignee for the bug.