diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-06 12:05:14 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-06 12:05:14 +0200 |
commit | c92ebc850345924619a12327f36cc6ac9c0b09d1 (patch) | |
tree | 42c6c51a12cb61fb621536619108fcd13b84fc94 /sw | |
parent | 0cf63ba224cb01377e3e6da68b0e72a3ed7e30af (diff) |
Disable spellcheck when LOK is active
It's not useful when viewing, and for editing probably a dedicated
overlay would be better (like the one we have for cursor/selections
already).
Disable for sw/sd explicitly, sc had it disabled implicitly already.
Change-Id: I7134f5d1a1546787c22019e6b1abdc0dd887f888
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/config/viewopt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx index 848c7dfede6f..703622bd48fc 100644 --- a/sw/source/uibase/config/viewopt.cxx +++ b/sw/source/uibase/config/viewopt.cxx @@ -319,6 +319,9 @@ bool SwViewOption::IsAutoCompleteWords() void SwViewOption::SetOnlineSpell(bool b) { + if (comphelper::LibreOfficeKit::isActive()) + return; + b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL); } |