mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fixed crash when deleting column and having the inset locked.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1302 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
451f6bb767
commit
4eb5ce6952
@ -2,6 +2,7 @@
|
||||
|
||||
* 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.
|
||||
|
@ -1556,11 +1556,13 @@ void InsetTabular::TabularFeatures(BufferView * bv,
|
||||
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:
|
||||
UnlockInsetInInset(bv, the_locking_inset);
|
||||
tabular->DeleteRow(tabular->row_of_cell(actcell));
|
||||
if ((row+1) > tabular->rows())
|
||||
--row;
|
||||
@ -1569,6 +1571,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user