]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_data.C
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_data.C
index 41b7aa43dece7f1f16d7e21cdc1d7e5d5b03c72c..1f65cd705a856566805f3e6dae92b72cabdd5179 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_data.h"
 #include "math_inset.h"
@@ -113,7 +110,7 @@ void MathArray::dump() const
 {
        NormalStream ns(lyxerr);
        for (const_iterator it = begin(); it != end(); ++it)
-               ns << "<" << *it << ">";
+               ns << '<' << *it << '>';
 }
 
 
@@ -215,7 +212,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 +272,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;
@@ -358,6 +355,7 @@ void MathArray::boundingBox(int & x1, int & x2, int & y1, int & y2)
        y2 = yo_ + descent();
 }
 
+
 void MathArray::center(int & x, int & y) const
 {
        x = xo_ + width() / 2;
@@ -400,7 +398,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();