From: Edwin Leuven Date: Sun, 13 Jun 2010 20:27:28 +0000 (+0000) Subject: columnWidth returns the col width of a cell, which is not what we want here (should... X-Git-Tag: 2.0.0~3140 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b51fb74a7f76ba38e114824d87727c200d979b0;p=features.git 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 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index fe9b95b962..a415e80899 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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; }