void InsetFormulaMacro::metrics(MetricsInfo & mi, Dimension & dim) const
{
MathNestInset::metrics(mi);
- dim = cell(0).dim();
- dim += cell(1).dim();
+ dim = cell(0).dim();
+ dim += cell(1).dim();
dim.asc += 5;
dim.des += 5;
dim.wid += 10 + font_metrics::width(prefix(), mi.base.font);
pi.pain.fillRectangle(x, a, w, h, LColor::mathmacrobg);
pi.pain.rectangle(x, a, w, h, LColor::mathframe);
+#warning FIXME
+#if 0
LCursor & cur = p.base.bv->cursor();
if (cur.isInside(this))
cur.drawSelection(pi);
+#endif
pi.pain.text(x + 2, y, prefix(), font);
#warning FIXME
#if 0
par()->draw(pi, x + font_metrics::width(prefix(), p.base.font) + 5, y);
- xo_ = x;
- yo_ = y;
#endif
+ setPosCache(pi, x, y);
}