]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbutton.C
Various fixes in insettext/tabular to make update work selective.
[features.git] / src / insets / insetbutton.C
index f167fe65beeb8b56402d4837153bdbab42f56b57..327ab0b6566cd97f74cccae7a4c3f6e4c00f160b 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "insetbutton.h"
 #include "debug.h"
+#include "BufferView.h"
 #include "Painter.h"
 
 using std::ostream;
@@ -86,9 +87,10 @@ int InsetButton::width(Painter & pain, LyXFont const &) const
 }
 
 
-void InsetButton::draw(Painter & pain, LyXFont const &,
+void InsetButton::draw(BufferView * bv, LyXFont const &,
                        int baseline, float & x) const
 {
+       Painter & pain = bv->painter();
        // Draw it as a box with the LaTeX text
        LyXFont font(LyXFont::ALL_SANE);
        font.setColor(LColor::command).decSize();