]> git.lyx.org Git - features.git/commitdiff
Fix broken logic
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2017 15:36:46 +0000 (16:36 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2017 15:36:46 +0000 (16:36 +0100)
Spotted by coverity.

src/insets/InsetSpecialChar.cpp

index ff4c7208a60c2abaa05fdd89e015b6cc7b4689b0..2dd695a41cbe98b1fdffd28c27cd356be2c0e349 100644 (file)
@@ -573,7 +573,7 @@ void InsetSpecialChar::validate(LaTeXFeatures & features) const
 
 bool InsetSpecialChar::isChar() const
 {
-       return kind_ != HYPHENATION || kind_ != LIGATURE_BREAK;
+       return kind_ != HYPHENATION && kind_ != LIGATURE_BREAK;
 }