]> git.lyx.org Git - features.git/commitdiff
columnWidth returns the col width of a cell, which is not what we want here (should...
authorEdwin Leuven <e.leuven@gmail.com>
Sun, 13 Jun 2010 20:27:28 +0000 (20:27 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Sun, 13 Jun 2010 20:27:28 +0000 (20:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34647 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index fe9b95b962bd64eb98a18a4542a1249bdc977a39..a415e80899a95c1c8c64e16c49fe5acd77c9197f 100644 (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;
 }