]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_unknowninset.h
index af0971777a499aa4813b3d4a3d3cb5c5da9c3fe4..0dcb683f3254cd144f86c5a0266d47c371631a2d 100644 (file)
@@ -22,8 +22,6 @@ public:
        explicit MathUnknownInset(std::string const & name,
                bool final = true, bool black = false);
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -51,6 +49,7 @@ public:
        ///
        bool final() const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
        std::string name_;
        /// are we finished creating the name?