diff options
Diffstat (limited to 'backend/tiff')
-rw-r--r-- | backend/tiff/meson.build | 34 | ||||
-rw-r--r-- | backend/tiff/tiff-document.c | 1 | ||||
-rw-r--r-- | backend/tiff/tiff2ps.c | 2 |
3 files changed, 34 insertions, 3 deletions
diff --git a/backend/tiff/meson.build b/backend/tiff/meson.build new file mode 100644 index 00000000..04f8f462 --- /dev/null +++ b/backend/tiff/meson.build @@ -0,0 +1,34 @@ +tiff_sources = [ + 'tiff-document.c', + 'tiff-document.h', + 'tiff2ps.c', + 'tiff2ps.h', +] + +tiff_deps = [ + cairo, + glib, + gtk, + math, + tiff, +] + +shared_module( + 'tiffdocument', + tiff_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: tiff_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'tiffdocument.atril-backend.desktop.in', + output: 'tiffdocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index 2129de20..c47be57f 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -361,7 +361,6 @@ tiff_document_render_pixbuf (EvDocument *document, if (width <= 0 || height <= 0) return NULL; - if (width >= INT_MAX / 4) /* overflow */ return NULL; diff --git a/backend/tiff/tiff2ps.c b/backend/tiff/tiff2ps.c index bcbbf885..41f2fb9a 100644 --- a/backend/tiff/tiff2ps.c +++ b/backend/tiff/tiff2ps.c @@ -449,7 +449,6 @@ PlaceImage(TIFF2PSContext *ctx, double pagewidth, double pageheight, return splitpage; } - void tiff2ps_process_page(TIFF2PSContext* ctx, TIFF* tif, double pw, double ph, double lm, double bm, gboolean cnt) @@ -592,7 +591,6 @@ tiff2ps_process_page(TIFF2PSContext* ctx, TIFF* tif, double pw, double ph, } } - static char DuplexPreamble[] = "\ %%BeginFeature: *Duplex True\n\ systemdict begin\n\ |