On Tue, Mar 26, 2002 at 04:55:26PM +0000, Angus Leeming wrote:
> 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?

I think that should work (and will take care of other such bugs from
popping up).

                        ---Kayvan
-- 
Kayvan A. Sylvan          | Proud husband of       | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)

Attachment: msg35470/pgp00000.pgp
Description: PGP signature

Reply via email to