sfx2/source/control/unoctitm.cxx |   14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

New commits:
commit f44aed75f1c1f64c07651376fd2f638f61e0c3b1
Author:     Aron Budea <aron.bu...@collabora.com>
AuthorDate: Sat Jun 10 03:50:04 2023 +0200
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Wed Jul 26 13:38:28 2023 +0200

    lok: sfx2: fix change state "SheetRightToLeft" 2nd attempt
    
    This reverts commit f86c951441270aaf75431369eabcfe26c35e4c63,
    and adds SheetRightToLeft in a different place.
    
    Change-Id: Id7001d06b247713de2e4dfe5076d156988e932d4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152808
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@collabora.com>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 20de9bb29ad3..fad61699db90 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -948,21 +948,14 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
         aEvent.FeatureURL.Path == "FormatPaintbrush" ||
         aEvent.FeatureURL.Path == "FreezePanes" ||
         aEvent.FeatureURL.Path == "Sidebar" ||
-        aEvent.FeatureURL.Path == "SheetRightToLeft" ||
         aEvent.FeatureURL.Path == "SpacePara1" ||
         aEvent.FeatureURL.Path == "SpacePara15" ||
         aEvent.FeatureURL.Path == "SpacePara2" ||
         aEvent.FeatureURL.Path == "DataFilterAutoFilter")
     {
         bool bTemp = false;
-
-        if (aEvent.IsEnabled)
-        {
-            aEvent.State >>= bTemp;
-            aBuffer.append(bTemp);
-        }
-        else
-            aBuffer.append("disabled");
+        aEvent.State >>= bTemp;
+        aBuffer.append(bTemp);
     }
     else if (aEvent.FeatureURL.Path == "CharFontName")
     {
@@ -1212,7 +1205,8 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
             aBuffer.append(OUString::boolean(aBool));
         }
     }
-    else if (aEvent.FeatureURL.Path == "ToggleMergeCells")
+    else if (aEvent.FeatureURL.Path == "ToggleMergeCells" ||
+             aEvent.FeatureURL.Path == "SheetRightToLeft")
     {
         bool aBool;
 

Reply via email to