From 5b2df0c09c63cc06c9158dba1b9e161fc799ba16 Mon Sep 17 00:00:00 2001 From: Douglas Mencken Date: Sun, 15 Jun 2014 12:37:48 -0400 Subject: conditionally revert 96840ff0ce697c5c05b59d53409b3cf27ac35e5f MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If5e53ca72fc3b90435d95b50c5c796ec0ff04869 Reviewed-on: https://gerrit.libreoffice.org/9790 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lingucomponent') 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) { -- cgit