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

New commits:
commit c5e0b00374bf9ad96c0ec3ab4d8f9ed76f2f2882
Author:     Darshan11 <darshan.upadh...@collabora.com>
AuthorDate: Mon Mar 18 13:46:09 2024 +0530
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Mar 18 13:40:47 2024 +0100

    Updated patch: Send ParaRightToLeft state messageto client
    
    - pass direct bool insted of string
    - We made some changes in 24 branch
    - so need to update same in 23.05
    
    Change-Id: Ie06b85c6d7ec6d00461c178e19ab77cc435d92b4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164964
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index b31a93fc9c9b..10d2230007db 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1136,8 +1136,8 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
         bool bTemp = false;
         aEvent.State >>= bTemp;
         aTree.put("commandName", aEvent.FeatureURL.Complete);
-        aTree.put("disabled", std::to_string(aEvent.IsEnabled) == "0" ? "true" 
: "false");
-        aTree.put("state", std::to_string(bTemp) == "1" ? "true" : "false");
+        aTree.put("disabled", !aEvent.IsEnabled);
+        aTree.put("state", bTemp ? "true" : "false");
         
SfxViewShell::Current()->libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED, 
aTree.extractData());
         return;
     }

Reply via email to