]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbutton.C
Some more changes for updating text-insets.
[lyx.git] / src / insets / insetbutton.C
index f167fe65beeb8b56402d4837153bdbab42f56b57..368604e5f0f3490f17b558a3b8f1044d6baf670e 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 &,
-                       int baseline, float & x) const
+void InsetButton::draw(BufferView * bv, LyXFont const &,
+                       int baseline, float & x, bool) const
 {
+       Painter & pain = bv->painter();
        // Draw it as a box with the LaTeX text
        LyXFont font(LyXFont::ALL_SANE);
        font.setColor(LColor::command).decSize();