]> 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 0821fb9f67a3005f6df955239acc73abe38ba8a8..9d5b97fe546112a4eeafa5525f77b6fa1cdc68db 100644 (file)
 #include "Changes.h"
 #include "Cursor.h"
 #include "ErrorList.h"
+#include "FuncCode.h"
 #include "FuncRequest.h"
 #include "InsetIterator.h"
 #include "InsetList.h"
 #include "Language.h"
-#include "lfuns.h"
 #include "LyXFunc.h"
 #include "LyXRC.h"
 #include "Text.h"
@@ -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);