[Libreoffice-commits] core.git: lingucomponent/source

Douglas Mencken dougmencken at gmail.com
Tue Jun 17 13:19:01 PDT 2014


 lingucomponent/source/spellcheck/macosxspell/macspellimp.mm |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 5b2df0c09c63cc06c9158dba1b9e161fc799ba16
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Sun Jun 15 12:37:48 2014 -0400

    conditionally revert 96840ff0ce697c5c05b59d53409b3cf27ac35e5f
    
    Change-Id: If5e53ca72fc3b90435d95b50c5c796ec0ff04869
    Reviewed-on: https://gerrit.libreoffice.org/9790
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 73f2be9..4f17ad3 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)
         {


More information about the Libreoffice-commits mailing list