On Tuesday 26 March 2002 4:50 pm, Kayvan A. Sylvan wrote: > On Tue, Mar 26, 2002 at 05:31:52PM +0100, Herbert Voss wrote: > > Angus Leeming wrote: > > >On Tuesday 26 March 2002 4:11 pm, Kayvan A. Sylvan wrote: > > >>On Tue, Mar 26, 2002 at 09:20:53AM +0100, Herbert Voss wrote: > > >>>Kayvan A. Sylvan wrote: > > >>>>Latest CVS, a document that was loading just fine as of a few days > > >>>>ago... Now I can no longer ``View Postscript''. > > >> > > >>I found the problem. A recent change makes LyX output the absolute path > > >>to the graphics file (instead of a relative path). > > > > > >It will only output the absolute path if the file is stored as an > > > absolute path. If you store it as relative to your doc, then it'll > > > output the relative path. That has to conform to the principle of least > > > surprise. > > > > these are the lines from latex(): > > > > string const latex_str = before + '{' + prepareFile(buf) + '}' + after; > > os << latex_str; > > > > and prepareFile() makes it as an absolute path: > > > > string filename_ = MakeAbsPath(params().filename, buf->filePath()); > > bool const zipped = zippedFile(filename_); > > [...] > > Here's the patch.
Shouldn't that be wrapped inside MakeAbsPath? Shall I do that? Angus