diff options
author | Henry Castro <hcastro@collabora.com> | 2017-10-19 22:47:17 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-10-26 21:08:01 +0200 |
commit | 804038a4c05f5296fa34722650bc393ac01c02dd (patch) | |
tree | 95777fc9fdbd221a1e9bac23437a83e8375de6bb /sfx2 | |
parent | 514c93d9741ce4bc12edf38eadb0e268aae80a90 (diff) |
sc lok: fix spell checking languages in Calc
Change-Id: Iadcc3b55a30ce2a2c785366fb3807ff6e4bda1fe
Reviewed-on: https://gerrit.libreoffice.org/43581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/43701
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 72edd1fabd15..394653cd582f 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1157,10 +1157,19 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c } else if (aEvent.FeatureURL.Path == "LanguageStatus") { + OUString sValue; css::uno::Sequence< OUString > aSeq; - if (aEvent.IsEnabled && (aEvent.State >>= aSeq)) + + if (aEvent.IsEnabled) { - aBuffer.append(aSeq[0]); + if (aEvent.State >>= sValue) + { + aBuffer.append(sValue); + } + else if (aEvent.State >>= aSeq) + { + aBuffer.append(aSeq[0]); + } } } else |