]> git.lyx.org Git - features.git/commitdiff
Fix part of bug #5561: Issues with image pasting
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 4 Nov 2010 14:28:33 +0000 (14:28 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 4 Nov 2010 14:28:33 +0000 (14:28 +0000)
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

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);