From e8b744ad2e3355963bc42c582fc86bfd56c40128 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 1 Mar 2017 16:36:46 +0100 Subject: [PATCH] Fix broken logic Spotted by coverity. --- src/insets/InsetSpecialChar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2