[Libreoffice-commits] core.git: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Sep 19 18:05:44 UTC 2018


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

New commits:
commit 1c2e55dc616d1f3c25b1b2c41402e28419f4b554
Author:     Maxim Monastirsky <momonasmon at gmail.com>
AuthorDate: Tue Sep 18 01:11:29 2018 +0300
Commit:     Maxim Monastirsky <momonasmon at 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 <momonasmon at 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#
         {


More information about the Libreoffice-commits mailing list