]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.C
the monster patch
[lyx.git] / src / insets / insetgraphics.C
index 257efeece25264d28ab3ba6d5136b2edb9c552dc..f9f5e1352f8cb558e7178860bfa9f8e4c67798f1 100644 (file)
@@ -192,26 +192,26 @@ void InsetGraphics::statusChanged() const
 
 
 DispatchResult
-InsetGraphics::priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &)
+InsetGraphics::priv_dispatch(BufferView & bv, FuncRequest const & cmd)
 {
        switch (cmd.action) {
        case LFUN_INSET_MODIFY: {
-               Buffer const & buffer = *cmd.view()->buffer();
+               Buffer const & buffer = *bv.buffer();
                InsetGraphicsParams p;
                InsetGraphicsMailer::string2params(cmd.argument, buffer, p);
                if (!p.filename.empty()) {
                        setParams(p);
-                       cmd.view()->update();
+                       bv.update();
                }
                return DispatchResult(true, true);
        }
 
        case LFUN_INSET_DIALOG_UPDATE:
-               InsetGraphicsMailer(*this).updateDialog(cmd.view());
+               InsetGraphicsMailer(*this).updateDialog(&bv);
                return DispatchResult(true, true);
 
        case LFUN_MOUSE_RELEASE:
-               InsetGraphicsMailer(*this).showDialog(cmd.view());
+               InsetGraphicsMailer(*this).showDialog(&bv);
                return DispatchResult(true, true);
 
        default: