diff options
author | Henry Castro <hcastro@collabora.com> | 2017-10-19 22:47:17 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2017-10-22 17:18:17 +0200 |
commit | 2fa424f40a185eb43d862a29abce07345695fcf3 (patch) | |
tree | 6d770158526a66d893e171cf56d53a31a6d1fcc6 /sfx2 | |
parent | 2460e7637f635727f4596f3e3d799eed434df082 (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>
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 c609bf21bbd5..1636be332a55 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1161,10 +1161,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 |