sfx2/source/control/unoctitm.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fd0a249ad1f4a55677e97bd6355e5316a863f9e6
Author:     Hubert Figuière <h...@collabora.com>
AuthorDate: Wed May 8 17:34:47 2024 -0400
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu May 9 17:13:37 2024 +0200

    lokit: Properly handle state update for .uno:ToggleSheetGrid
    
    This is a follow up on cool#8066
    
    Signed-off-by: Hubert Figuière <h...@collabora.com>
    Change-Id: I7d6ce4c9dfe7c2e9a2dda110e587c8c825c4df2f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167370
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    (cherry picked from commit 9bbe40cc2d39f89ffcae57875d4c7ef7688d83d7)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167317
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 7d518f435d81..6fb25977796e 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -940,8 +940,7 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
         aEvent.FeatureURL.Path == "SpacePara15" ||
         aEvent.FeatureURL.Path == "SpacePara2" ||
         aEvent.FeatureURL.Path == "DataFilterAutoFilter" ||
-        aEvent.FeatureURL.Path == "CellProtection" ||
-        aEvent.FeatureURL.Path == "ToggleSheetGrid")
+        aEvent.FeatureURL.Path == "CellProtection")
     {
         bool bTemp = false;
         aEvent.State >>= bTemp;
@@ -1222,7 +1221,8 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
         }
     }
     else if (aEvent.FeatureURL.Path == "ToggleMergeCells" ||
-             aEvent.FeatureURL.Path == "SheetRightToLeft")
+             aEvent.FeatureURL.Path == "SheetRightToLeft" ||
+             aEvent.FeatureURL.Path == "ToggleSheetGrid")
     {
         bool aBool;
 

Reply via email to