columnWidth returns the col width of a cell, which is not what we want here (should fix tables flying of the screen)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34647 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-06-13 20:27:28 +00:00
parent 732e1cfed7
commit 7b51fb74a7

View File

@ -4711,7 +4711,7 @@ int InsetTabular::cellXPos(idx_type const cell) const
col_type col = tabular.cellColumn(cell);
int lx = 0;
for (col_type c = 0; c < col; ++c)
lx += tabular.columnWidth(c);
lx += tabular.column_info[c].width;
return lx;
}