diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index b0f09f656d..9087352a28 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-06-11 John Levon + + * insettabular.C: correctly mark all cells as erased + 2003-06-11 Angus Leeming * insetexternal.[Ch]: InsetExternal::Params no longer stores the diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 0007786eb3..ce9c046b22 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -2625,10 +2625,10 @@ void InsetTabular::markErased() { int cell = 0; - while (!tabular->IsLastCell(cell)) { - ++cell; + while (cell < tabular->GetNumberOfCells()) { InsetText * inset = tabular->GetCellInset(cell); inset->markErased(); + ++cell; } }