sfx2/source/control/unoctitm.cxx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)
New commits: commit 97a32713174a14758672d388de7627c71e2b70f8 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Sat Jun 10 03:50:04 2023 +0200 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Wed Jul 26 17:32:43 2023 +0200 lok: sfx2: fix change state "SheetRightToLeft" 2nd attempt This reverts commit 71e5f7e43471cc479ea1e818c813170a389964e6, 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> (cherry picked from commit f44aed75f1c1f64c07651376fd2f638f61e0c3b1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154928 Tested-by: Aron Budea <aron.bu...@collabora.com> Reviewed-by: Aron Budea <aron.bu...@collabora.com> diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 2feec75dac6c..20ae855ab6f3 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -932,21 +932,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") { @@ -1193,7 +1186,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;