From: Jean-Marc Lasgouttes Date: Wed, 1 Mar 2017 15:36:46 +0000 (+0100) Subject: Fix broken logic X-Git-Tag: 2.3.0alpha1~299 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e8b744ad2e3355963bc42c582fc86bfd56c40128;p=features.git Fix broken logic Spotted by coverity. --- diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index ff4c7208a6..2dd695a41c 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -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; }