#include <config.h>
#include "insets/insetgraphics.h"
+#include "BufferView.h"
#include "Painter.h"
#include "form_graphics.h"
#include "lyx_gui_misc.h"
}
-void InsetGraphics::draw(Painter & pain, LyXFont const & font,
- int baseline, float & x) const
+void InsetGraphics::draw(BufferView * bv, LyXFont const & font,
+ int baseline, float & x, bool) const
{
+ Painter & pain = bv->painter();
+
// This will draw the graphics. As for now we only draw a
// placeholder rectangele.
pain.rectangle(int(x), baseline - ascent(pain, font),