From: Vincent van Ravesteijn Date: Thu, 4 Nov 2010 14:28:33 +0000 (+0000) Subject: Fix part of bug #5561: Issues with image pasting X-Git-Tag: 2.0.0~2057 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6f6165260523c0e5055488f634c300fab63e2c13;p=features.git 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 --- 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);