mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Initialize language configuration variable used by the aspell checker.
This prevents a crash of the spelling server during its initialization. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27818 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c91d16c371
commit
75f908ff62
2 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,10 @@
|
|||
* Source/NSWorkspace.m (-findApplications): Retain cached path of
|
||||
make_services tool.
|
||||
|
||||
* Tools/GSspell.m (-init): Initialize language configuration
|
||||
variable used by the aspell checker. This prevents a crash of
|
||||
the spelling server during its initialization.
|
||||
|
||||
2009-02-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSImage.m: Fix missing header.
|
||||
|
|
|
@ -80,7 +80,7 @@ findMisspelledWordInString:(NSString *)stringToCheck
|
|||
{
|
||||
[inputScanner scanUpToCharactersFromSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]
|
||||
intoString: NULL];
|
||||
*wordCount++;
|
||||
(*wordCount)++;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -169,6 +169,7 @@ findMisspelledWordInString:(NSString *)stringToCheck
|
|||
#ifdef HAVE_ASPELL_H
|
||||
// initialization...
|
||||
config = new_aspell_config();
|
||||
aspell_config_replace(config, "lang", "en_US");
|
||||
speller = to_aspell_speller(new_aspell_speller(config));
|
||||
checker = to_aspell_document_checker(new_aspell_document_checker(speller));
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue