commit f6405ef85357ebac5dbc29cb75ca77f3d2eda696
Author: Thibaut Cuvelier <[email protected]>
Date:   Fri Nov 1 17:57:06 2024 +0100

    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_);
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to