From f04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 6 Dec 2004 18:08:20 +0100 Subject: xref parse workaround. font config messing. shade cleanup. --- filter/filec.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'filter/filec.c') diff --git a/filter/filec.c b/filter/filec.c index 5ea3c75a..4388b48a 100644 --- a/filter/filec.c +++ b/filter/filec.c @@ -276,6 +276,12 @@ fz_seek(fz_file *f, int ofs, int whence) return ofs; } + if (whence == 1) + { + ofs = fz_tell(f) + ofs; + whence = 0; + } + t = lseek(f->fd, ofs, whence); if (t == -1) { -- cgit v1.2.3