]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Improve how add_to_preamble and insert_to_preamble work, and audit the
[lyx.git] / src / CutAndPaste.cpp
index 3d2bc2c324a8c751df7ec56facf948e98674f5dc..18993152f341e664fb098e3651f9584fcb22ccdf 100644 (file)
@@ -1037,7 +1037,7 @@ void pasteClipboardGraphics(Cursor & cur, ErrorList & /* errorList */,
        // create inset for graphic
        InsetGraphics * inset = new InsetGraphics(cur.buffer());
        InsetGraphicsParams params;
-       params.filename = support::DocFileName(filename.absFileName());
+       params.filename = support::DocFileName(filename.absFileName(), false);
        inset->setParams(params);
        cur.recordUndo();
        cur.insert(inset);