]> git.lyx.org Git - features.git/commitdiff
fix undo bug with phantom inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 4 Feb 2009 17:52:28 +0000 (17:52 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 4 Feb 2009 17:52:28 +0000 (17:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28352 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetPhantom.h

index 0f3ceaa9077f4f6f7201892d2c2c1ed27fc07803..a6ccaa7a4fa9a492b6e71794bd62d570e054077f 100644 (file)
@@ -89,6 +89,8 @@ private:
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        docstring toolTip(BufferView const & bv, int x, int y) const;
+       ///
+       Inset * clone() const { return new InsetPhantom(*this); }
        /// used by the constructors
        void init();
        ///