forked from devel-factory/xsane
- Rebase patches to include rh/gentoo/debian ones: A 001-xdg-open-as-default-browser.patch A 002-close-fds.patch A 004-ipv6-support.patch A 006-preview-selection.patch A 100-remove-non-working-help.patch A 101-xsane_fix_pdf_floats.patch A 200-fix_options_handling_fix.patch A 201-fix_pdf_xref.patch A 901-desktop-file.patch A 902-license-dialog.patch A 903-fix_broken_links.patch A 904-fix_message_typo.patch A 907-fix_spin_button_pagesize.patch A 908-no-file-selected.patch A 0005-m4.patch A 0010-fix_missing_sane-config.patch - Drop patches hanled in the above: D no-eula.patch D remove-non-working-help.patch D xdg-open-as-default-browser.patch D xsane_fix_pdf_floats.patch D xsane-desktop.patch - Add patch to build with lcms2 instead of lcms: * xsane-0.999-lcms2.patch OBS-URL: https://build.opensuse.org/request/show/511853 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/xsane?expand=0&rev=23
21 lines
752 B
Diff
21 lines
752 B
Diff
Description: Fix xref table generation
|
|
Mark non-existent objects as free in the xref table.
|
|
Author: Julien BLACHE <jblache@debian.org>
|
|
Forwarded: yes
|
|
|
|
Index: xsane-0.998/src/xsane-multipage-project.c
|
|
===================================================================
|
|
--- xsane-0.998.orig/src/xsane-multipage-project.c 2010-11-16 21:25:50.000000000 +0100
|
|
+++ xsane-0.998/src/xsane-multipage-project.c 2011-02-04 19:50:53.929016002 +0100
|
|
@@ -973,6 +973,10 @@
|
|
else if (output_format == XSANE_PDF)
|
|
{
|
|
xsane_save_pdf_create_document_header(outfile, &xref, pages, preferences.save_pdf_flatedecoded);
|
|
+
|
|
+ /* Objects 4 and 5 are unused and do not exist */
|
|
+ xref.obj[4] = 0;
|
|
+ xref.obj[5] = 0;
|
|
}
|
|
}
|
|
#ifdef HAVE_LIBTIFF
|