}
-void InsetMathGrid::appendRow()
-{
- rowinfo_.push_back(RowInfo());
- //cells_.insert(cells_.end(), ncols(), MathData());
- for (col_type col = 0; col < ncols(); ++col) {
- cells_.push_back(cells_type::value_type());
- cellinfo_.push_back(CellInfo());
- }
-}
-
-
void InsetMathGrid::delRow(row_type row)
{
if (nrows() == 1)
{
col_type c = col(idx);
int x = colinfo_[c].offset_;
- char align = colinfo_[c].align_;
+ char align = displayColAlign(c, row(idx));
Dimension const & celldim = cell(idx).dimension(bv);
if (align == 'r' || align == 'R')
x += colinfo_[c].width_ - celldim.wid;
if (cur.idx() > 0)
--cur.idx();
cur.pos() = cur.lastpos();
-
+ cur.forceBufferUpdate();
//mathcursor->normalize();
//cmd = FuncRequest(LFUN_FINISHED_BACKWARD);
break;