diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-20 09:31:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-20 09:31:37 +0000 |
commit | e4600af202ef9c999df7769e245960248d4d7e59 (patch) | |
tree | fc76ad84f268f81b772a4c12b5498e6ae3be4295 /main/evince/evince-2.32.0-pk-fonts.patch | |
parent | f887c908054f17aefd95dc5b3a2338276d974ae8 (diff) | |
download | aports-e4600af202ef9c999df7769e245960248d4d7e59.tar.bz2 aports-e4600af202ef9c999df7769e245960248d4d7e59.tar.xz |
main/evince: enable tiff backend and fix various issues
most patches are taken frrom gentoo
Diffstat (limited to 'main/evince/evince-2.32.0-pk-fonts.patch')
-rw-r--r-- | main/evince/evince-2.32.0-pk-fonts.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/evince/evince-2.32.0-pk-fonts.patch b/main/evince/evince-2.32.0-pk-fonts.patch new file mode 100644 index 0000000000..8379e7453c --- /dev/null +++ b/main/evince/evince-2.32.0-pk-fonts.patch @@ -0,0 +1,37 @@ +From 0a6e8aabcc46d47b5d84e5414cd0e07d57ef171b Mon Sep 17 00:00:00 2001 +From: José Aliste <jaliste@src.gnome.org> +Date: Mon, 17 Jan 2011 17:30:00 +0000 +Subject: Fix problem with some pk fonts. + +--- +diff --git a/backend/dvi/mdvi-lib/pk.c b/backend/dvi/mdvi-lib/pk.c +index 08377e6..a911613 100644 +--- a/backend/dvi/mdvi-lib/pk.c ++++ b/backend/dvi/mdvi-lib/pk.c +@@ -328,13 +328,14 @@ static int pk_load_font(DviParams *unused, DviFont *font) + { + int i; + int flag_byte; +- int loc, hic, maxch; ++ int hic, maxch; + Int32 checksum; + FILE *p; + #ifndef NODEBUG + char s[256]; + #endif + long alpha, beta, z; ++ unsigned int loc; + + font->chars = xnalloc(DviFontChar, 256); + p = font->in; +@@ -521,7 +522,7 @@ static int pk_load_font(DviParams *unused, DviFont *font) + } + + /* resize font char data */ +- if(loc > 0 && hic < maxch-1) { ++ if(loc > 0 || hic < maxch-1) { + memmove(font->chars, font->chars + loc, + (hic - loc + 1) * sizeof(DviFontChar)); + font->chars = xresize(font->chars, +-- +cgit v0.8.3.1 |