Kaydet (Commit) 1c2e55dc authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#119819 Disable Rename Layer command when not possible

Change-Id: I5bb330295c1052679ed19ebeb0d6e5591640867d
Reviewed-on: https://gerrit.libreoffice.org/60650
Tested-by: Jenkins
Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
üst 7dcb1592
...@@ -857,7 +857,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) ...@@ -857,7 +857,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
} }
// is it allowed to delete the current layer? // 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# if(GetLayerTabControl()) // #i87182#
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment