From 330d20384eaa7445513eadf5939a5cb15029f56f Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 11 Jun 2003 18:03:40 +0000 Subject: [PATCH] change tracking: mark the first table cell as erased too git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7152 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/insettabular.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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; } } -- 2.39.2