namespace lyx {
InsetMathColor::InsetMathColor(Buffer * buf, bool oldstyle, ColorCode color)
- : InsetMathNest(buf, 1), w_(0), oldstyle_(oldstyle),
+ : InsetMathNest(buf, 1), oldstyle_(oldstyle),
color_(from_utf8(lcolor.getLaTeXName(color)))
{}
InsetMathColor::InsetMathColor(Buffer * buf, bool oldstyle,
docstring const & color)
- : InsetMathNest(buf, 1), w_(0), oldstyle_(oldstyle), color_(color)
+ : InsetMathNest(buf, 1), oldstyle_(oldstyle), color_(color)
{}
void InsetMathColor::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(0).metrics(mi, dim);
- metricsMarkers(dim);
}
{
ColorCode origcol = pi.base.font.color();
pi.base.font.setColor(lcolor.getFromLaTeXName(to_utf8(color_)));
- cell(0).draw(pi, x + 1, y);
+ cell(0).draw(pi, x, y);
pi.base.font.setColor(origcol);
- drawMarkers(pi, x, y);
- setPosCache(pi, x, y);
}