]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.cpp
Access the correct cell function.
[lyx.git] / src / insets / InsetTabular.cpp
index e149c1d810aa13e05074bdf0c238ed8c2542aab2..742baece13f7b2497de9683ddd208db076243239 100644 (file)
@@ -5299,7 +5299,7 @@ void InsetTabular::addPreview(DocIterator const & inset_pos,
        cell_pos.push_back(CursorSlice(*const_cast<InsetTabular *>(this)));
        for (row_type i = 0; i < rows; ++i) {
                for (col_type j = 0; j < columns; ++j) {
-                       cell_pos.top().idx() = index(i, j);
+                       cell_pos.top().idx() = tabular.cellIndex(i, j);
                        tabular.cellInset(i, j)->addPreview(cell_pos, loader);
                }
        }