]> git.lyx.org Git - features.git/blobdiff - src/CutAndPaste.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[features.git] / src / CutAndPaste.cpp
index 087d68ba14bf7aa6cf358a34014bb0620487af65..a535a8255df284dc37fac236f90111de406bfaf9 100644 (file)
@@ -861,7 +861,7 @@ void pasteClipboardGraphics(Cursor & cur, ErrorList & /* errorList */,
        // create inset for graphic
        InsetGraphics * inset = new InsetGraphics(cur.buffer());
        InsetGraphicsParams params;
-       params.filename = EmbeddedFile(filename.absFilename(), cur.buffer().filePath());
+       params.filename = support::DocFileName(filename.absFilename());
        inset->setParams(params);
        cur.recordUndo();
        cur.insert(inset);