From: <al...@us...> - 2010-02-12 05:35:12
|
Revision: 2803 http://omegat.svn.sourceforge.net/omegat/?rev=2803&view=rev Author: alex73 Date: 2010-02-12 05:35:05 +0000 (Fri, 12 Feb 2010) Log Message: ----------- Common marker interface - fix spellchecker errors on all words Modified Paths: -------------- trunk/src/org/omegat/core/spellchecker/SpellChecker.java Modified: trunk/src/org/omegat/core/spellchecker/SpellChecker.java =================================================================== --- trunk/src/org/omegat/core/spellchecker/SpellChecker.java 2010-02-12 05:34:04 UTC (rev 2802) +++ trunk/src/org/omegat/core/spellchecker/SpellChecker.java 2010-02-12 05:35:05 UTC (rev 2803) @@ -351,17 +351,18 @@ boolean isCorrect; // if it is valid (learned), it is ok - if (learnedList.contains(word) || ignoreList.contains(word)) + if (learnedList.contains(word) || ignoreList.contains(word)) { isCorrect = true; - if (pHunspell != null) { + } else if (pHunspell != null) { + isCorrect = false; try { - if (0 != hunspell.Hunspell_spell(pHunspell, prepareString(word))) { + if (0 != hunspell + .Hunspell_spell(pHunspell, prepareString(word))) { isCorrect = true; } } catch (UnsupportedEncodingException ex) { Log.log("Unsupported encoding " + encoding); } - isCorrect = false; } else if (jmyspell != null) { isCorrect = jmyspell.isCorrect(word); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |