InsetGraphicsParams p = params();
if (!cmd.argument().empty())
string2params(to_utf8(cmd.argument()), buffer(), p);
- editGraphics(p, buffer());
+ editGraphics(p);
break;
}
}
-void InsetGraphics::editGraphics(InsetGraphicsParams const & p,
- Buffer const & buffer) const
+void InsetGraphics::editGraphics(InsetGraphicsParams const & p) const
{
- formats.edit(buffer, p.filename,
+ formats.edit(buffer(), p.filename,
formats.getFormatFromFile(p.filename));
}
///
bool showInsetDialog(BufferView * bv) const;
///
- void editGraphics(InsetGraphicsParams const &, Buffer const &) const;
+ void editGraphics(InsetGraphicsParams const &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///