mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-11 16:31:09 +00:00
Similar fix to last commit for InsetExternal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23905 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ec5ac0486a
commit
6fc256105e
@ -1443,11 +1443,14 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
case LFUN_EXTERNAL_EDIT: {
|
case LFUN_EXTERNAL_EDIT: {
|
||||||
BOOST_ASSERT(lyx_view_);
|
BOOST_ASSERT(lyx_view_);
|
||||||
FuncRequest fr(action, argument);
|
FuncRequest fr(action, argument);
|
||||||
InsetExternal().dispatch(view()->cursor(), fr);
|
InsetExternal ie;
|
||||||
|
ie.setBuffer(*lyx_view_->buffer());
|
||||||
|
ie.dispatch(view()->cursor(), fr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_GRAPHICS_EDIT: {
|
case LFUN_GRAPHICS_EDIT: {
|
||||||
|
BOOST_ASSERT(lyx_view_);
|
||||||
FuncRequest fr(action, argument);
|
FuncRequest fr(action, argument);
|
||||||
InsetGraphics ig;
|
InsetGraphics ig;
|
||||||
ig.setBuffer(*lyx_view_->buffer());
|
ig.setBuffer(*lyx_view_->buffer());
|
||||||
|
Loading…
Reference in New Issue
Block a user