From f6405ef85357ebac5dbc29cb75ca77f3d2eda696 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Fri, 1 Nov 2024 17:57:06 +0100 Subject: [PATCH] Fix a tautological condition. --- src/mathed/InsetMathFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index 93f8b5ca0e..1e12397c08 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -130,7 +130,7 @@ public: } // Explicitly match the cases with an empty output. This ensures that we catch at runtime // invalid values for the enum while keeping compile-time warnings. - if (span_class.empty() && (family_ != MATH_NORMAL_FAMILY || family_ != MATH_DOUBLE_STRUCK_FAMILY)) { + if (span_class.empty() && (family_ == MATH_NORMAL_FAMILY || family_ == MATH_DOUBLE_STRUCK_FAMILY)) { LYXERR(Debug::MATHED, "Unexpected case in MathFontInfo::toHTMLSpanClass: family_ = " << family_ << ", series = " << series_ << ", shape = " << shape_);