summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-06-15 12:37:48 -0400
committerCaolán McNamara <caolanm@redhat.com>2014-06-17 20:18:35 +0000
commit5b2df0c09c63cc06c9158dba1b9e161fc799ba16 (patch)
tree56634db76dfdcb3f48dff7a169b346fd89152ebc /lingucomponent
parent8309bf58868a1a135f8e1bc0255555368e208a61 (diff)
Change-Id: If5e53ca72fc3b90435d95b50c5c796ec0ff04869 Reviewed-on: https://gerrit.libreoffice.org/9790 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 73f2be909e38..4f17ad397d6d 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -350,7 +350,11 @@ Reference< XSpellAlternatives >
aLang = [aLang stringByAppendingString:aTaggedCountry];
}
[macSpell setLanguage:aLang];
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ NSArray *guesses = [macSpell guessesForWord:aNSStr];
+#else
NSArray *guesses = [macSpell guessesForWordRange:NSMakeRange(0, [aNSStr length]) inString:aNSStr language:aLang inSpellDocumentWithTag:0];
+#endif
count = [guesses count];
if (count)
{