mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Drop runtime support for OS X 10.5 NSSpellChecker
This commit is contained in:
parent
bb87e0422a
commit
54b0fa330e
@ -162,16 +162,11 @@ size_t AppleSpeller_makeSuggestion(AppleSpeller speller, const char * word, cons
|
|||||||
// Mac OS X 10.6 only
|
// Mac OS X 10.6 only
|
||||||
NSInteger slen = [word_ length];
|
NSInteger slen = [word_ length];
|
||||||
NSRange range = { 0, slen };
|
NSRange range = { 0, slen };
|
||||||
|
|
||||||
if ([NSSpellChecker instancesRespondToSelector:@selector(guessesForWordRange:)]) {
|
result = [speller->checker guessesForWordRange:range
|
||||||
result = [speller->checker guessesForWordRange:range
|
inString:word_
|
||||||
inString:word_
|
language:lang_
|
||||||
language:lang_
|
inSpellDocumentWithTag:speller->doctag];
|
||||||
inSpellDocumentWithTag:speller->doctag];
|
|
||||||
} else {
|
|
||||||
[speller->checker setLanguage:lang_];
|
|
||||||
result = [speller->checker guessesForWord:word_];
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
[speller->checker setLanguage:lang_];
|
[speller->checker setLanguage:lang_];
|
||||||
result = [speller->checker guessesForWord:word_];
|
result = [speller->checker guessesForWord:word_];
|
||||||
|
Loading…
Reference in New Issue
Block a user