X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Finsets%2Finsetgraphics.C;h=f9f5e1352f8cb558e7178860bfa9f8e4c67798f1;hb=70d0ba900118ac7e253c1e1969fd7a3d64ec8e03;hp=257efeece25264d28ab3ba6d5136b2edb9c552dc;hpb=fd355bbb2f3b192ccf92a59177eb68255449048f;p=lyx.git diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 257efeece2..f9f5e1352f 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -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: