]> git.lyx.org Git - features.git/commitdiff
less negated logic
authorAndré Pönitz <poenitz@gmx.net>
Sun, 16 Nov 2008 14:57:03 +0000 (14:57 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sun, 16 Nov 2008 14:57:03 +0000 (14:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27553 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 1ee6e3f4eb09f77355250d8903d0f23856e06ea0..5e0402b21df45622effdf829dfc165f5129b1913 100644 (file)
@@ -545,21 +545,21 @@ bool InsetMathHull::numbered(row_type row) const
 
 bool InsetMathHull::ams() const
 {
-       return
-               type_ == hullAlign ||
-               type_ == hullFlAlign ||
-               type_ == hullMultline ||
-               type_ == hullGather ||
-               type_ == hullAlignAt ||
-               type_ == hullXAlignAt ||
-               type_ == hullXXAlignAt;
+       return type_ == hullAlign
+               || type_ == hullFlAlign
+               || type_ == hullMultline
+               || type_ == hullGather
+               || type_ == hullAlignAt
+               || type_ == hullXAlignAt
+               || type_ == hullXXAlignAt;
 }
 
 
 Inset::DisplayType InsetMathHull::display() const
 {
-       return (type_ != hullSimple && type_ != hullNone
-               && type_ != hullRegexp) ? AlignCenter : Inline;
+       if (type_ == hullSimple || type_ == hullNone || type_ == hullRegexp)
+               return Inline;
+       return AlignCenter;
 }
 
 bool InsetMathHull::numberedType() const