]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.C
Some more changes for updating text-insets.
[lyx.git] / src / insets / insetgraphics.C
index 39c3b19e6323e5b8b25ac6f5e452403e1ab85b92..586934dd14934134ad9d177873eb245ad953af3a 100644 (file)
@@ -15,6 +15,7 @@
 #include <config.h>
 
 #include "insets/insetgraphics.h"
+#include "BufferView.h"
 #include "Painter.h"
 #include "form_graphics.h"
 #include "lyx_gui_misc.h"
@@ -133,9 +134,11 @@ int InsetGraphics::width(Painter &, LyXFont const &) const
 }
 
 
-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),