From: Jürgen Vigna Date: Mon, 13 Aug 2001 08:14:09 +0000 (+0000) Subject: Fixed problem with deleting last row in a tabular. X-Git-Tag: 1.6.10~20852 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aa46044e0cec8edfe3f84f57def5fc5797667391;p=features.git Fixed problem with deleting last row in a tabular. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2493 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 85217b5a9d..a19f05650e 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Juergen Vigna + + * insettabular.C (tabularFeatures): fixed fix where deleting the + last row didn't get the right actcell! + 2001-08-11 Dekel Tsur * insettext.C (localDispatch): Change language only when the inset diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 67cee87f16..62ab9682b9 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -1692,7 +1692,7 @@ void InsetTabular::tabularFeatures(BufferView * bv, for(int i = sel_row_start; i <= sel_row_end; ++i) { tabular->DeleteRow(sel_row_start); } - if ((sel_row_start) > tabular->rows()) + if (sel_row_start >= tabular->rows()) --sel_row_start; actcell = tabular->GetCellNumber(sel_row_start, column); clearSelection(); @@ -1703,7 +1703,7 @@ void InsetTabular::tabularFeatures(BufferView * bv, for(int i = sel_col_start; i <= sel_col_end; ++i) { tabular->DeleteColumn(sel_col_start); } - if ((sel_col_start+1) > tabular->columns()) + if (sel_col_start >= tabular->columns()) --sel_col_start; actcell = tabular->GetCellNumber(row, sel_col_start); clearSelection();