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

src/insets/InsetLabel.cpp
src/insets/InsetLabel.h

index e0d00c6fc988d56ff1f67d0af2f802bffe92d2e2..4c87e69591affdd09551625e0b2ff0a99721671e 100644 (file)
@@ -45,12 +45,6 @@ ParamInfo const & InsetLabel::findInfo(string const & /* cmdName */)
 }
 
 
-Inset * InsetLabel::clone() const
-{
-       return new InsetLabel(params());
-}
-
-
 void InsetLabel::getLabelList(vector<docstring> & list) const
 {
        list.push_back(getParam("name"));
index e9fa8b50d6a92f5959a6c0749da248a69b326ea5..6e97d511009d71d147ff74db5bd926d3a4881c8a 100644 (file)
@@ -49,7 +49,7 @@ protected:
        void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
        ///
-       Inset * clone() const;
+       Inset * clone() const { return new InsetLabel(*this); }
 };