From 6f6165260523c0e5055488f634c300fab63e2c13 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 4 Nov 2010 14:28:33 +0000 Subject: [PATCH] Fix part of bug #5561: Issues with image pasting Now the path to the pasted graphics is saved as a relative path if possible. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36058 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 3d2bc2c324..18993152f3 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -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);