]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetcaption.h
index af616f662894dff6327f7d40419527b7e5dd440c..a8b5321c9bfd6cf751e6176fa4494035b8b0d0f5 100644 (file)
@@ -30,12 +30,11 @@ public:
        ///
        virtual bool needFullRow() const;
        ///
-       virtual Inset::Code lyxCode() const;
+       virtual InsetOld::Code lyxCode() const;
        ///
        virtual string const editMessage() const;
        ///
-       virtual void draw(BufferView * bv, LyXFont const & f,
-                         int baseline, float & x) const;
+       virtual void draw(PainterInfo & pi, int x, int y) const;
        ///
        virtual int latex(Buffer const * buf, std::ostream & os,
                          LatexRunParams const &) const;
@@ -61,7 +60,7 @@ bool InsetCaption::needFullRow() const
 
 
 inline
-Inset::Code InsetCaption::lyxCode() const
+InsetOld::Code InsetCaption::lyxCode() const
 {
        return CAPTION_CODE;
 }