Fix the crash on some PDF files. Bump the PORTREVISION.

PR:		ports/162755
Obtained from:	http://osdir.com/ml/general/2010-09/msg30460.html
Submitted by:	Hiroto Kagotani <hiroto.kagotani@gmail.com>
Feature safe:	yes
This commit is contained in:
Jeremy Messenger 2012-03-14 05:30:38 +00:00
parent 1feef668bf
commit ed75e52482
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293276
2 changed files with 29 additions and 1 deletions

View file

@ -8,7 +8,7 @@
PORTNAME= evince
PORTVERSION= 2.32.0
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= graphics print gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2

View file

@ -0,0 +1,28 @@
--- ./backend/pdf/ev-poppler.cc.orig 2010-09-28 01:54:34.000000000 +0900
+++ ./backend/pdf/ev-poppler.cc 2011-11-22 20:11:28.000000000 +0900
@@ -640,6 +640,7 @@
PopplerPermissions permissions;
EvPage *page;
char *metadata;
+ gboolean linearized;
info = g_new0 (EvDocumentInfo, 1);
@@ -676,7 +677,7 @@
"producer", &(info->producer),
"creation-date", &(info->creation_date),
"mod-date", &(info->modified_date),
- "linearized", &(info->linearized),
+ "linearized", &linearized,
"metadata", &metadata,
NULL);
@@ -782,6 +783,8 @@
info->security = g_strdup (_("No"));
}
+ info->linearized = linearized ? g_strdup (_("Yes")) : g_strdup (_("No"));
+
return info;
}