]> git.lyx.org Git - features.git/commitdiff
* InsetTabular.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 15 Sep 2008 08:43:42 +0000 (08:43 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 15 Sep 2008 08:43:42 +0000 (08:43 +0000)
- comment out non-working code that can trigger an assertion (probably bug 5225).
  (this code also does not work as expected in branch, but it doesn't act as badly there)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26407 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 51772474d4625c42da99bba43aa0d3929a1c63eb..57677177017b9e2a7e7f803abbb51236cc167c77 100644 (file)
@@ -691,10 +691,14 @@ void Tabular::appendColumn(idx_type const cell)
        for (row_type r = 0; r < nrows; ++r) {
                cell_info[r].insert(cell_info[r].begin() + c + 1, 
                        CellData(buffer()));
+#if 0
+// FIXME: This code does not work. It deletes the cell's content and
+// it triggers an assertion if the cursor is at pos > 0.
                if (cell_info[r][c].multicolumn == CELL_BEGIN_OF_MULTICOLUMN)
                        cell_info[r][c + 1].multicolumn = CELL_PART_OF_MULTICOLUMN;
                else
                        cell_info[r][c + 1].multicolumn = cell_info[r][c].multicolumn;
+#endif
        }
        updateIndexes();
        for (row_type r = 0; r < nrows; ++r) {