evince r2989 - in trunk: . shell
- From: carlosgc svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r2989 - in trunk: . shell
- Date: Sun, 6 Apr 2008 10:30:06 +0100 (BST)
Author: carlosgc
Date: Sun Apr 6 10:30:06 2008
New Revision: 2989
URL: http://svn.gnome.org/viewvc/evince?rev=2989&view=rev
Log:
2008-04-06 Carlos Garcia Campos <carlosgc gnome org>
* shell/ev-jobs.c: (ev_job_print_get_page_list):
Fix a crash when printing a range that doesn't specify the start or
end page. Fixes bug #524288.
Modified:
trunk/ChangeLog
trunk/shell/ev-jobs.c
Modified: trunk/shell/ev-jobs.c
==============================================================================
--- trunk/shell/ev-jobs.c (original)
+++ trunk/shell/ev-jobs.c Sun Apr 6 10:30:06 2008
@@ -819,6 +819,11 @@
gint rsize;
gint start, end;
+ if (job->ranges[i].start == -1)
+ job->ranges[i].start = 0;
+ if (job->ranges[i].end == -1)
+ job->ranges[i].end = max_page;
+
if (job->ranges[i].start > max_page)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]