]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_data.C
small up/down tweaking
[lyx.git] / src / mathed / math_data.C
index e4b9c50dda981ebf5fed09e8aeb8872e2f4a7430..757b5d0a6fde06f6a0c199a390869d91bd8c0937 100644 (file)
@@ -113,7 +113,7 @@ void MathArray::dump() const
 {
        NormalStream ns(lyxerr);
        for (const_iterator it = begin(); it != end(); ++it)
-               ns << "<" << *it << ">";
+               ns << '<' << *it << '>';
 }
 
 
@@ -215,7 +215,7 @@ Dimension const & MathArray::metrics(MathMetricsInfo & mi) const
        drawn_  = false;
 
        mathed_char_dim(mi.base.font, 'I', dim_);
-       if (empty()) 
+       if (empty())
                return dim_;
 
        dim_.w = 0;
@@ -275,7 +275,7 @@ void MathArray::drawT(TextPainter & pain, int x, int y) const
 {
        //if (drawn_ && x == xo_ && y == yo_)
        //      return;
-       //lyxerr << "x: " << x << " y: " << y << " " << pain.workAreaHeight() << endl;
+       //lyxerr << "x: " << x << " y: " << y << ' ' << pain.workAreaHeight() << endl;
        xo_    = x;
        yo_    = y;
        drawn_ = true;
@@ -400,7 +400,7 @@ void MathArray::notifyCursorLeaves()
                        mathcursor->adjust(i, ar.size() - 1);
                }
        }
-               
+
        // glue adjacent font insets of the same kind
        for (pos_type i = 0; i + 1 < size(); ++i) {
                MathFontInset * p = operator[](i).nucleus()->asFontInset();
@@ -408,8 +408,8 @@ void MathArray::notifyCursorLeaves()
                if (p && q && p->name() == q->name()) {
                        p->cell(0).append(q->cell(0));
                        erase(i + 1);
+                       mathcursor->adjust(i, -1);
                }
-               mathcursor->adjust(i, -1);
        }
 
 }