summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2023-06-01 11:04:13 -0400
committerHenry Castro <hcastro@collabora.com>2023-06-20 00:41:35 +0200
commit71e5f7e43471cc479ea1e818c813170a389964e6 (patch)
tree715a90c6a723443a2fa5c2b33bcd72455893eeab /sfx2
parent3a827ee8f05a5188eebda90d0e306cc90ee28638 (diff)
lok: sfx2: fix change state "SheetRightToLeft"
The UNO command "SheetRightToLeft" can be disabled Signed-off-by: Henry Castro <hcastro@collabora.com> Change-Id: I54742c9d52eb52e36154e0aac2cdf440771eb177 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152502 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit fc8270f06eca5ba2ba25673a424b36d9e352f62a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152546 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153267 Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 1b0d1223a3b7..4495873a89af 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -938,8 +938,14 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, SfxViewFrame* pViewFra
aEvent.FeatureURL.Path == "SpacePara2")
{
bool bTemp = false;
- aEvent.State >>= bTemp;
- aBuffer.append(bTemp);
+
+ if (aEvent.IsEnabled)
+ {
+ aEvent.State >>= bTemp;
+ aBuffer.append(bTemp);
+ }
+ else
+ aBuffer.append("disabled");
}
else if (aEvent.FeatureURL.Path == "CharFontName")
{