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 /sd | |
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 'sd')
-rw-r--r-- | sd/source/core/drawdoc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index 16849adb32a3..3d6ad2fae5bf 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -98,6 +98,7 @@ #include <tools/tenccvt.hxx> #include <vcl/settings.hxx> +#include <comphelper/lok.hxx> using namespace ::sd; using namespace ::com::sun::star; @@ -232,7 +233,8 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh) SetLanguage( MsLangId::resolveSystemLanguageByScriptType(aOptions.nDefaultLanguage_CTL, ::com::sun::star::i18n::ScriptType::COMPLEX), EE_CHAR_LANGUAGE_CTL ); - mbOnlineSpell = aOptions.bIsSpellAuto; + if (!comphelper::LibreOfficeKit::isActive()) + mbOnlineSpell = aOptions.bIsSpellAuto; } LanguageType eRealLanguage = MsLangId::getRealLanguage( meLanguage ); |