mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
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:
parent
fb1f95ff00
commit
46f37cfd3a
@ -175,9 +175,12 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
{
|
{
|
||||||
switch (cmd.action) {
|
switch (cmd.action) {
|
||||||
case LFUN_GRAPHICS_EDIT: {
|
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;
|
InsetGraphicsParams p;
|
||||||
InsetGraphicsMailer::string2params(to_utf8(cmd.argument()), buffer(), p);
|
InsetGraphicsMailer::string2params(to_utf8(cmd.argument()), buf, p);
|
||||||
editGraphics(p, buffer());
|
editGraphics(p, buf);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user