mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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
This commit is contained in:
parent
adedac675b
commit
6f61652605
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user