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:
Jean-Marc Lasgouttes 2002-04-12 13:50:04 +00:00
parent 4025b11bc4
commit 4b4a18e85a
2 changed files with 9 additions and 4 deletions

View File

@ -1,11 +1,16 @@
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!
2002-04-08 Herbert Voss <voss@perce.de>
* insetgraphic.C (write): write the rotating angle as
a float as is. test only for != 0.0
* insetgraphic.C (write): write the rotating angle as
a float as is. test only for != 0.0
2002-04-11 Juergen Vigna <jug@sad.it>

View File

@ -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_);
}