]> git.lyx.org Git - features.git/blobdiff - src/insets/insettabular.C
more NEW_INSETS changes, define NEW_MANUBAR as default some other changes, read ChangeLog
[features.git] / src / insets / insettabular.C
index 8192b6b12d665fd1a95161109f79e06eef983931..1c17492e2b282202f0ea9e68e8395de2b4d5e88c 100644 (file)
@@ -1095,9 +1095,15 @@ void InsetTabular::TabularFeatures(BufferView * bv, int feature, string val)
        sel_col_start = sel_col_end = tabular->column_of_cell(actcell);
        sel_row_start = sel_row_end = tabular->row_of_cell(actcell);
     }
-    bv->text->SetUndo(bv->buffer(), Undo::FINISH, 
+    bv->text->SetUndo(bv->buffer(), Undo::FINISH,
+#ifndef NEW_INSETS
              bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->previous,
-             bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->next);
+             bv->text->cursor.par()->ParFromPos(bv->text->cursor.pos())->next
+#else
+             bv->text->cursor.par()->previous,
+             bv->text->cursor.par()->next
+#endif
+           );
 
     int row = tabular->row_of_cell(actcell);
     int column = tabular->column_of_cell(actcell);