]> git.lyx.org Git - features.git/commitdiff
Fix InsetBibitem::clone.
authorRichard Heck <rgheck@comcast.net>
Fri, 29 Feb 2008 20:12:35 +0000 (20:12 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 29 Feb 2008 20:12:35 +0000 (20:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23359 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBibitem.cpp
src/insets/InsetBibitem.h

index e0a14e68b8539496ea7db382fda5e095377ed21f..576cece165b49120c0dbef4c0374c4c5810f0a77 100644 (file)
@@ -60,14 +60,6 @@ ParamInfo const & InsetBibitem::findInfo(string const & /* cmdName */)
 }
 
 
-Inset * InsetBibitem::clone() const
-{
-       InsetBibitem * b = new InsetBibitem(params());
-       b->autolabel_ = autolabel_;
-       return b;
-}
-
-
 void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action) {
index 6f476fd1b54a957aae9a93fdcbdbc4d0993458db..c6e6d70841313efd10624ddf51de1c79d048394c 100644 (file)
@@ -56,7 +56,7 @@ protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
        ///
-       virtual Inset * clone() const;
+       virtual Inset * clone() const { return new InsetBibitem(*this); }
        /// The label that is set by updateLabels
        docstring autolabel_;
        ///