#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "math_data.h"
#include "math_inset.h"
{
NormalStream ns(lyxerr);
for (const_iterator it = begin(); it != end(); ++it)
- ns << "<" << *it << ">";
+ ns << '<' << *it << '>';
}
drawn_ = false;
mathed_char_dim(mi.base.font, 'I', dim_);
- if (empty())
+ if (empty())
return dim_;
dim_.w = 0;
{
//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;
y2 = yo_ + descent();
}
+
void MathArray::center(int & x, int & y) const
{
x = xo_ + width() / 2;
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();