officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu | 4 ++-- sd/source/ui/dlg/LayerTabBar.cxx | 2 +- sd/source/ui/view/drviews7.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 7f79b0caf194ff9d7dfa2f85379a5c752c905476 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Tue Nov 14 13:55:27 2023 -0900 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Thu Nov 16 04:48:08 2023 +0100 tdf#158179 Fix layer tab menu layer visibility check menu item Renames/reworks the layer tab context menu visibility check menu item from 'Show Layer' to 'Hide layer' and fixes a bug that causes the check menu item to be set as the layer visibility setting of the previously selected layer tab. Change-Id: I81f1910f95df50255e61115b5d8de8ed3ef8bd89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159427 Tested-by: Jenkins Tested-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu index 311c5d3dff2e..de8d13e78222 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu @@ -999,10 +999,10 @@ <value xml:lang="en-US">Toggle Layer Visibility</value> </prop> <prop oor:name="ContextLabel" oor:type="xs:string"> - <value xml:lang="en-US">~Show Layer</value> + <value xml:lang="en-US">~Hide Layer</value> </prop> <prop oor:name="PopupLabel" oor:type="xs:string"> - <value xml:lang="en-US">~Show Layer (Shift+Click)</value> + <value xml:lang="en-US">~Hide Layer (Shift+Click)</value> </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> diff --git a/sd/source/ui/dlg/LayerTabBar.cxx b/sd/source/ui/dlg/LayerTabBar.cxx index 7e09228e6ed4..96b96068f331 100644 --- a/sd/source/ui/dlg/LayerTabBar.cxx +++ b/sd/source/ui/dlg/LayerTabBar.cxx @@ -134,7 +134,7 @@ bool LayerTabBar::IsRealNameOfStandardLayer(std::u16string_view rName) void LayerTabBar::Select() { SfxDispatcher* pDispatcher = pDrViewSh->GetViewFrame()->GetDispatcher(); - pDispatcher->Execute(SID_SWITCHLAYER, SfxCallMode::ASYNCHRON); + pDispatcher->Execute(SID_SWITCHLAYER, SfxCallMode::SYNCHRON); } void LayerTabBar::MouseButtonDown(const MouseEvent& rMEvt) diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 223493fb29e0..d8dbbac0362d 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -1278,7 +1278,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) } if ( !aActiveLayer.isEmpty() && pPV ) - rSet.Put( SfxBoolItem(SID_TOGGLELAYERVISIBILITY, pPageView->IsLayerVisible(aActiveLayer)) ); + rSet.Put( SfxBoolItem(SID_TOGGLELAYERVISIBILITY, !pPageView->IsLayerVisible(aActiveLayer)) ); // are the modules available?