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_);