]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.cpp
columnWidth returns the col width of a cell, which is not what we want here (should...
[lyx.git] / 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;
 }