]> 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 364e1e9d034e5eaf06cc5515a5a7695719d9ccf3..18993152f341e664fb098e3651f9584fcb22ccdf 100644 (file)
@@ -35,6 +35,7 @@
 #include "Paragraph.h"
 #include "ParagraphParameters.h"
 #include "ParIterator.h"
+#include "TextClass.h"
 
 #include "insets/InsetBibitem.h"
 #include "insets/InsetBranch.h"
@@ -1036,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);