diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev')
-rw-r--r-- | odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java index fbaf25e5d9cc..4c273e966bc3 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java @@ -275,8 +275,8 @@ public class SampleHyphenator extends ComponentBase implements // check if hyphenation pos is valid, // a value of -1 indicates that hyphenation is not possible if ( nHyphenationPos != -1 && - !(nHyphenationPos < nHyphMinLeading) && - !(nHyphenationPos >= aWord.length() - nHyphMinTrailing)) + (nHyphenationPos > nHyphMinLeading) && + (nHyphenationPos < aWord.length() - nHyphMinTrailing)) { xRes = new XHyphenatedWord_impl(aWord, aLocale, nHyphenationPos, aHyphenatedWord, nHyphenPos); |