]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetexternal.C
The BIG UNDO patch. Recodes undo handling for better use inside InsetText.
[lyx.git] / src / insets / insetexternal.C
index 172f9b6418c6ca20899f9aabdeea504ab5006669..8eaa064280d004d94d4b9048869e3bafdaf9870d 100644 (file)
@@ -185,11 +185,13 @@ void InsetExternal::validate(LaTeXFeatures & features) const
 }
 
 
-Inset * InsetExternal::clone(Buffer const &) const
+Inset * InsetExternal::clone(Buffer const &, bool same_id) const
 {
        InsetExternal * inset = new InsetExternal();
        inset->params_ = params_;
        inset->view_ = view_;
+       if (same_id)
+               inset->id_ = id_;
        return inset;
 }