sd/source/ui/view/drviews7.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 1c2e55dc616d1f3c25b1b2c41402e28419f4b554
Author:     Maxim Monastirsky <momonas...@gmail.com>
AuthorDate: Tue Sep 18 01:11:29 2018 +0300
Commit:     Maxim Monastirsky <momonas...@gmail.com>
CommitDate: Wed Sep 19 20:05:20 2018 +0200

    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 <momonas...@gmail.com>

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#
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to