]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetRef.h
index 3a8c4637b686ee6ea729c1ad9f0aadddca3336f6..2ee6e83c2d30b5a023cb0b71f01946cf5854f3ea 100644 (file)
@@ -45,7 +45,7 @@ public:
        ///
        Code lyxCode() const { return REF_CODE; }
        ///
-       bool display() const { return false; }
+       DisplayType display() const { return Inline; }
        ///
        int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
@@ -63,8 +63,8 @@ protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual std::auto_ptr<Inset> doClone() const {
-               return std::auto_ptr<Inset>(new InsetRef(*this));
+       virtual Inset * clone() const {
+               return new InsetRef(*this);
        }
        ///
        bool isLatex;