]> git.lyx.org Git - lyx.git/blobdiff - src/tabular.C
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / tabular.C
index f07b3e48c28aa6831c3f0feb19cef526996bd1dc..bde0dc4f78c869bdd83e536433e7396925e72308 100644 (file)
@@ -817,7 +817,6 @@ void LyXTabular::recalculateMulticolumnsOfColumn(col_type column)
 }
 
 
-// returns 1 if a complete update is necessary, otherwise 0
 void LyXTabular::setWidthOfCell(idx_type cell, int new_width)
 {
        row_type const row = row_of_cell(cell);
@@ -2511,6 +2510,13 @@ shared_ptr<InsetText> LyXTabular::getCellInset(row_type row,
 }
 
 
+void LyXTabular::setCellInset(row_type row, col_type column,
+                             shared_ptr<InsetText> ins) const
+{
+       cell_info[row][column].inset = ins;
+}
+
+
 LyXTabular::idx_type
 LyXTabular::getCellFromInset(InsetBase const * inset) const
 {