namespace lyx {
InsetMathDots::InsetMathDots(latexkeys const * key)
- : key_(key)
+ : dh_(0), key_(key)
{}
}
-void InsetMathDots::draw(PainterInfo & pain, int x, int y) const
+void InsetMathDots::draw(PainterInfo & pi, int x, int y) const
{
- Dimension const dim = dimension(*pain.base.bv);
+ Dimension const dim = dimension(*pi.base.bv);
if (key_->name == "adots" || key_->name == "iddots")
--y;
- mathed_draw_deco(pain, x + 2, y - dh_, dim.width() - 2, dim.ascent(),
+ mathed_draw_deco(pi, x + 2, y - dh_, dim.width() - 2, dim.ascent(),
key_->name);
if (key_->name == "vdots" || key_->name == "ddots" || key_->name == "adots" || key_->name == "iddots")
++x;
++y;
else if (key_->name != "vdots")
--y;
- mathed_draw_deco(pain, x + 2, y - dh_, dim.width() - 2, dim.ascent(),
+ mathed_draw_deco(pi, x + 2, y - dh_, dim.width() - 2, dim.ascent(),
key_->name);
- setPosCache(pain, x, y);
+ setPosCache(pi, x, y);
}
void InsetMathDots::validate(LaTeXFeatures & features) const
{
if (!key_->requires.empty())
- features.require(to_utf8(key_->requires));
+ features.require(key_->requires);
}