diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-20 15:30:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:02 +0200 |
commit | dc53e3027bb1a278164f15d0a31f20c15608d10e (patch) | |
tree | 84fe7e21121789981ac18e53e1f45453a064e279 /odk | |
parent | 726fc58d0cbdb0fa6d71e5c896889a7c5b64cd9c (diff) |
java: simplify conditions involving logical negation
Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
Diffstat (limited to 'odk')
-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); |