diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2018-09-18 01:11:29 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2018-09-19 20:05:20 +0200 |
commit | 1c2e55dc616d1f3c25b1b2c41402e28419f4b554 (patch) | |
tree | a5411a86f1de93c4ce644a0971b9afcaa22726fb /sd/source/ui/view/drviews7.cxx | |
parent | 7dcb1592eb2783333437ff8ae4fef1f3dec10f70 (diff) |
tdf#119819 Disable Rename Layer command when not possible
Change-Id: I5bb330295c1052679ed19ebeb0d6e5591640867d
Reviewed-on: https://gerrit.libreoffice.org/60650
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 2ed053c37beb..22bc8d5955a8 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -857,7 +857,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) } // is it allowed to delete the current layer? - if( SfxItemState::DEFAULT == rSet.GetItemState( SID_DELETE_LAYER ) ) + if( SfxItemState::DEFAULT == rSet.GetItemState( SID_DELETE_LAYER ) + || SfxItemState::DEFAULT == rSet.GetItemState( SID_RENAMELAYER ) ) { if(GetLayerTabControl()) // #i87182# { |