Small tabular fix (init of row/column struct when appending)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1609 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2001-02-23 13:29:00 +00:00
parent 5f0fbae5b3
commit fed46e5525
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-02-23 Juergen Vigna <jug@sad.it>
* src/tabular.C (AppendColumn): fixed initialitation of column_struct.
(AppendRow): fixed initialitation of row_struct.
2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
* src/insets/insettext.C (LocalDispatch): Restore the language

View File

@ -195,6 +195,8 @@ void LyXTabular::AppendRow(int cell)
row_vector::iterator rit = row_info.begin() + row;
row_info.insert(rit, rowstruct());
// now set the values of the row before
row_info[row] = row_info[row+1];
#if 0
cell_vvector::iterator cit = cell_info.begin() + row;
@ -246,6 +248,8 @@ void LyXTabular::AppendColumn(int cell)
int const column = column_of_cell(cell);
column_vector::iterator cit = column_info.begin() + column + 1;
column_info.insert(cit, columnstruct());
// set the column values of the column before
column_info[column+1] = column_info[column];
for (int i = 0; i < rows_; ++i) {
for (int j = 0; j <= column; ++j) {