]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.cpp
This patch introduces an optional argument to Buffer::updateLabels(), so
[lyx.git] / src / insets / InsetTabular.cpp
index e149c1d810aa13e05074bdf0c238ed8c2542aab2..2678cd9d76d50040c2e1a1652790a99a3f122c16 100644 (file)
@@ -3320,7 +3320,7 @@ void InsetTabular::edit(Cursor & cur, bool front, EntryDirection)
 }
 
 
-void InsetTabular::updateLabels(ParIterator const & it)
+void InsetTabular::updateLabels(ParIterator const & it, bool out)
 {
        // In a longtable, tell captions what the current float is
        Counters & cnts = buffer().masterBuffer()->params().documentClass().counters();
@@ -3332,7 +3332,7 @@ void InsetTabular::updateLabels(ParIterator const & it)
        it2.forwardPos();
        size_t const end = it2.nargs();
        for ( ; it2.idx() < end; it2.top().forwardIdx())
-               buffer().updateLabels(it2);
+               buffer().updateLabels(it2, out);
 
        //reset afterwards
        if (tabular.is_long_tabular)
@@ -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);
                }
        }