From dc53e3027bb1a278164f15d0a31f20c15608d10e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Aug 2014 15:30:36 +0200 Subject: java: simplify conditions involving logical negation Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e --- .../DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odk') 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); -- cgit ro/cib/libreoffice-5-3