]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Allow using \binom without amsmath and add support for \brace and \brack
[lyx.git] / src / CutAndPaste.cpp
index fdf609e6f5bd5502ec3406998bc1dcfc934ab1fe..9d5b97fe546112a4eeafa5525f77b6fa1cdc68db 100644 (file)
@@ -859,7 +859,7 @@ void pasteClipboardGraphics(Cursor & cur, ErrorList & /* errorList */,
                return;
 
        // create inset for graphic
-       InsetGraphics * inset = new InsetGraphics;
+       InsetGraphics * inset = new InsetGraphics(cur.buffer());
        InsetGraphicsParams params;
        params.filename = EmbeddedFile(filename.absFilename(), cur.buffer().filePath());
        inset->setParams(params);