Fix GRAPHICS_EDIT of InsetGraphics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23899 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-03-23 04:02:33 +00:00
parent fb1f95ff00
commit 46f37cfd3a

View File

@ -175,9 +175,12 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
{
switch (cmd.action) {
case LFUN_GRAPHICS_EDIT: {
// use buffer() from cursor because this inset may not
// have an initialized buffer_.
Buffer const & buf = cur.bv().buffer();
InsetGraphicsParams p;
InsetGraphicsMailer::string2params(to_utf8(cmd.argument()), buffer(), p);
editGraphics(p, buffer());
InsetGraphicsMailer::string2params(to_utf8(cmd.argument()), buf, p);
editGraphics(p, buf);
break;
}