From 2c32b53923d5a37627db54d229e7d5f8b8c74d5a Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 25 Nov 2009 19:57:57 +0000 Subject: [PATCH] Access the correct cell function. Fixes a bug introduced in r32157 while fixing bug #4360. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32200 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index e149c1d810..742baece13 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -5299,7 +5299,7 @@ void InsetTabular::addPreview(DocIterator const & inset_pos, cell_pos.push_back(CursorSlice(*const_cast(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); } } -- 2.39.2