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 ++++++ filter/jbig2d.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'filter') 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) { diff --git a/filter/jbig2d.c b/filter/jbig2d.c index f0022bda..ed54eed3 100644 --- a/filter/jbig2d.c +++ b/filter/jbig2d.c @@ -12,7 +12,7 @@ +create the per-page ctx */ -#ifdef WIN32 /* Microsoft Visual C+*/ +#ifdef WIN32 /* Microsoft Visual C++ */ typedef signed char int8_t; typedef short int int16_t; -- cgit v1.2.3