fix handling of one column tables

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10296 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-17 16:38:28 +00:00
parent 7672118199
commit c32b732f9d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-07-17 José Matos <jamatos@fc.up.pt>
* tabular.C (recalculateMulticolumns): fix handling of one column
tables.
2005-07-17 Juergen Vigna <jug@lyx.org>
* text.C (Delete, backspace): fixed so that paragraph with the
@ -40,7 +45,7 @@
* paragraph.h: add parameter boundary for getRow() function
2005-07-18 José Matos <jamatos@fc.up.pt>
2005-07-17 José Matos <jamatos@fc.up.pt>
* buffer.C:
* bufferparams.[Ch]:

View File

@ -798,7 +798,7 @@ void LyXTabular::recalculateMulticolumnsOfColumn(col_type column)
// the last column does not have to be recalculated because all
// multicolumns will have here there last multicolumn cell which
// always will have the whole rest of the width of the cell.
if (column > (columns_ - 2))
if (columns_ < 2 || column > (columns_ - 2))
return;
for (row_type row = 0; row < rows_; ++row) {
int mc = cell_info[row][column].multicolumn;