]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathScript.cpp
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathScript.cpp
index 62aab03af0530fecddf8865fe9e82196975f6999..e40db4f16488064b6c91b18c6a0c3dcf1a9c2408 100644 (file)
@@ -271,6 +271,10 @@ MathClass InsetMathScript::mathClass() const
 
 void InsetMathScript::metrics(MetricsInfo & mi, Dimension & dim) const
 {
+       // we store this, because it is much easier
+       has_limits_ = hasLimits(mi.base.font);
+
+       // Compute metrics of the available cells
        Dimension dim0;
        Dimension dim1;
        Dimension dim2;
@@ -284,8 +288,6 @@ void InsetMathScript::metrics(MetricsInfo & mi, Dimension & dim) const
                if (nargs() > 2)
                        cell(2).metrics(mi, dim2, !has_limits_);
        }
-       // we store this, because it is much easier
-       has_limits_ = hasLimits(mi.base.font);
 
        dim.wid = 0;
        BufferView & bv = *mi.base.bv;
@@ -386,7 +388,7 @@ void InsetMathScript::removeScript(bool up)
                if (up == cell_1_is_up_)
                        cells_.pop_back();
        } else if (nargs() == 3) {
-               if (up == true) {
+               if (up) {
                        swap(cells_[1], cells_[2]);
                        cell_1_is_up_ = false;
                } else {