-void MathDecorationInset::draw(Painter & pain, int x, int y) const
-{
- xcell(0).draw(pain, x, y);
- if (wide())
- mathed_draw_deco(pain, x, y + dy_, width_, dh_, name_);
- else {
- int w = mathed_char_width(LM_TC_VAR, size_, 'x');
- mathed_draw_deco(pain, x + (width_ - w) / 2, y + dy_, w, dh_, name_);
- }
+void MathDecorationInset::draw(PainterInfo & pi, int x, int y) const
+{
+ cell(0).draw(pi, x + 1, y);
+ if (wide())
+ mathed_draw_deco(pi, x + 1, y + dy_, cell(0).width(), dh_, key_->name);
+ else
+ mathed_draw_deco(pi, x + 1 + (cell(0).width() - dw_) / 2,
+ y + dy_, dw_, dh_, key_->name);
+ drawMarkers(pi, x, y);