]> git.lyx.org Git - features.git/blobdiff - src/insets/insettabular.C
Added copy constructor to inset.h and used it in most insets which permit
[features.git] / src / insets / insettabular.C
index 26607fed2a69a40860f6e487555e543e9ab747e7..82c19e806d653b23160d88b06255f230a42153d8 100644 (file)
@@ -141,7 +141,7 @@ InsetTabular::InsetTabular(Buffer const & buf, int rows, int columns)
 
 InsetTabular::InsetTabular(InsetTabular const & tab, Buffer const & buf,
                                                   bool same_id)
-       : buffer(&buf)
+       : UpdatableInset(tab, same_id), buffer(&buf)
 {
        tabular.reset(new LyXTabular(this, *(tab.tabular)));
        the_locking_inset = 0;
@@ -150,8 +150,6 @@ InsetTabular::InsetTabular(InsetTabular const & tab, Buffer const & buf,
        actrow = actcell = 0;
        sel_cell_start = sel_cell_end = 0;
        need_update = INIT;
-       if (same_id)
-               id_ = tab.id_;
 }