]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.C
Prevent an assert when opening the citation dialog if the bibtex
[lyx.git] / src / insets / insetgraphics.C
index ec3387a4c8918410ee28318e2a4cb865074bd676..4a025357c98d4cc4bec63d749f64de4341e6cff4 100644 (file)
@@ -201,7 +201,7 @@ InsetGraphics::priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &)
                InsetGraphicsMailer::string2params(cmd.argument, buffer, p);
                if (!p.filename.empty()) {
                        setParams(p);
-                       cmd.view()->updateInset(this);
+                       cmd.view()->update();
                }
                return DispatchResult(true, true);
        }
@@ -235,6 +235,8 @@ void InsetGraphics::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetGraphics::draw(PainterInfo & pi, int x, int y) const
 {
+       xo_ = x;
+       yo_ = y;
        graphic_->draw(pi, x, y);
 }