Author: vfr
Date: Fri Nov  5 16:38:20 2010
New Revision: 36118
URL: http://www.lyx.org/trac/changeset/36118

Log:
branch: Fix part of bug #5561: Issues with image pasting.

Now the path to the pasted graphics is saved as a relative path if possible.

see r36058.

Modified:
   lyx-devel/branches/BRANCH_1_6_X/src/CutAndPaste.cpp
   lyx-devel/branches/BRANCH_1_6_X/status.16x

Modified: lyx-devel/branches/BRANCH_1_6_X/src/CutAndPaste.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/CutAndPaste.cpp Fri Nov  5 16:18:47 
2010        (r36117)
+++ lyx-devel/branches/BRANCH_1_6_X/src/CutAndPaste.cpp Fri Nov  5 16:38:20 
2010        (r36118)
@@ -960,7 +960,7 @@
        // 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);

Modified: lyx-devel/branches/BRANCH_1_6_X/status.16x
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/status.16x  Fri Nov  5 16:18:47 2010        
(r36117)
+++ lyx-devel/branches/BRANCH_1_6_X/status.16x  Fri Nov  5 16:38:20 2010        
(r36118)
@@ -114,6 +114,8 @@
 - Set correct anchor for the link to the bibliography in the table
   of contents if hyperref is used (bug 6470).
 
+- Save the path of pasted images as a relative path (part of bug 5561).
+
 
 * USER INTERFACE
 

Reply via email to