-void MathAMSArrayInset::draw(Painter & pain, int x, int y) const
-{
- MathGridInset::draw(pain, x + 6, y);
- int yy = y - ascent_;
- mathed_draw_deco(pain, x + 1, yy, 5, height(), name_left());
- mathed_draw_deco(pain, x + width_ - 6, yy, 5, height(), name_right());
+void MathAMSArrayInset::draw(PainterInfo & pi, int x, int y) const
+{
+ MathGridInset::draw(pi, x + 6, y);
+ int const yy = y - dim_.ascent();
+ mathed_draw_deco(pi, x + 1, yy, 5, dim_.height(), name_left());
+ mathed_draw_deco(pi, x + dim_.width() - 6, yy, 5, dim_.height(), name_right());
+ setPosCache(pi, x, y);