* src/insets/insettabular.C (resetPos): an extra scroll, but we
really should redo all this scrolling code!
* src/insets/insettabular.C (resetPos): an extra scroll, but we
really should redo all this scrolling code!
+ (TabularFeatures): unlock the_locking_inset before add/del rows/colums.
* src/text.C (GetVisibleRow): check that y/h values are good otherwise
change them.
* src/text.C (GetVisibleRow): check that y/h values are good otherwise
change them.
break;
case LyXTabular::APPEND_COLUMN:
// append the column into the tabular
break;
case LyXTabular::APPEND_COLUMN:
// append the column into the tabular
+ UnlockInsetInInset(bv, the_locking_inset);
tabular->AppendColumn(actcell);
actcell = tabular->GetCellNumber(row, column);
UpdateLocal(bv, INIT, true);
break;
case LyXTabular::DELETE_ROW:
tabular->AppendColumn(actcell);
actcell = tabular->GetCellNumber(row, column);
UpdateLocal(bv, INIT, true);
break;
case LyXTabular::DELETE_ROW:
+ UnlockInsetInInset(bv, the_locking_inset);
tabular->DeleteRow(tabular->row_of_cell(actcell));
if ((row+1) > tabular->rows())
--row;
tabular->DeleteRow(tabular->row_of_cell(actcell));
if ((row+1) > tabular->rows())
--row;
UpdateLocal(bv, INIT, true);
break;
case LyXTabular::DELETE_COLUMN:
UpdateLocal(bv, INIT, true);
break;
case LyXTabular::DELETE_COLUMN:
+ UnlockInsetInInset(bv, the_locking_inset);
tabular->DeleteColumn(tabular->column_of_cell(actcell));
if ((column+1) > tabular->columns())
--column;
tabular->DeleteColumn(tabular->column_of_cell(actcell));
if ((column+1) > tabular->columns())
--column;