]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/command_inset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / command_inset.h
index ffec6a762545dbc52ba8c4c2cb22575900ddac9a..b0de073df565ac55419f8a303c6b176dca587c27 100644 (file)
@@ -24,8 +24,6 @@ public:
        ///
        explicit CommandInset(std::string const & name);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -40,6 +38,8 @@ public:
        ///
        std::string const & commandname() const { return name_; }
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
        std::string name_;
        ///