]> git.lyx.org Git - features.git/blobdiff - src/LyXFunc.cpp
Revert 23899 and introduce the correct fix.
[features.git] / src / LyXFunc.cpp
index 8cd2d66906122667452902f9d5ad33cc3d584ddd..6772c0668de687d76af18f35652007641f35cd01 100644 (file)
@@ -1449,7 +1449,9 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
 
                case LFUN_GRAPHICS_EDIT: {
                        FuncRequest fr(action, argument);
-                       InsetGraphics().dispatch(view()->cursor(), fr);
+                       InsetGraphics ig;
+                       ig.setBuffer(*lyx_view_->buffer());
+                       ig.dispatch(view()->cursor(), fr);
                        break;
                }