#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+#include "math_support.h"
MathSizeInset::MathSizeInset(latexkeys const * l)
void MathSizeInset::draw(Painter & pain, int x, int y) const
{
- xcell(0).draw(pain, x, y);
+ xcell(0).draw(pain, x + 1, y);
+ mathed_draw_framebox(pain, x, y, this);
}
MathMetricsInfo m = mi;
m.style = MathStyles(key_->id);
xcell(0).metrics(m);
- ascent_ = xcell(0).ascent_;
- descent_ = xcell(0).descent_;
- width_ = xcell(0).width_;
+ ascent_ = xcell(0).ascent_ + 1;
+ descent_ = xcell(0).descent_ + 1;
+ width_ = xcell(0).width_ + 2;
}