mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
fix bug with relative paths in insetgraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3985 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4025b11bc4
commit
4b4a18e85a
@ -1,3 +1,8 @@
|
||||
2002-04-12 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* insetgraphics.C (prepareFile): fix bug when graphics is a
|
||||
relative path
|
||||
|
||||
2002-04-12 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* insettext.C (insertInset): remove unneeded code!
|
||||
|
@ -635,7 +635,7 @@ string const InsetGraphics::prepareFile(Buffer const *buf) const
|
||||
return filename_;
|
||||
}
|
||||
|
||||
string const temp = AddName(buf->tmppath, filename_);
|
||||
string const temp = MakeAbsPath(filename_, buf->tmppath);
|
||||
string const outfile_base = RemoveExtension(temp);
|
||||
|
||||
lyxerr[Debug::GRAPHICS] << "tempname = " << temp << "\n";
|
||||
@ -644,7 +644,7 @@ string const InsetGraphics::prepareFile(Buffer const *buf) const
|
||||
lyxerr[Debug::GRAPHICS] << "outfile_base = " << outfile_base << endl;
|
||||
|
||||
converters.convert(buf, filename_, outfile_base, from, to);
|
||||
return outfile_base;
|
||||
return RemoveExtension(filename_);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user