From: Darren Kenny Date: Tue, 20 Nov 2007 13:58:13 +0000 (+0000) Subject: Fix endless loop when pages_per_sheet is 0. Fixes bug #498248. X-Git-Tag: EVINCE_2_21_1~14 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1b13b523cfcdb0c6f5d473d37b6196c5c5c3ea22;p=evince.git Fix endless loop when pages_per_sheet is 0. Fixes bug #498248. 2007-11-20 Darren Kenny * shell/ev-jobs.c: (ev_job_print_new): Fix endless loop when pages_per_sheet is 0. Fixes bug #498248. svn path=/trunk/; revision=2742 --- diff --git a/ChangeLog b/ChangeLog index 61763a00..928e6ba2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-20 Darren Kenny + + * shell/ev-jobs.c: (ev_job_print_new): + + Fix endless loop when pages_per_sheet is 0. Fixes bug #498248. + 2007-10-29 Carlos Garcia Campos * data/evince-toolbar.xml: diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index 84eb365c..8c59af87 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -735,7 +735,7 @@ ev_job_print_new (EvDocument *document, job->page_set = page_set; - job->pages_per_sheet = pages_per_sheet; + job->pages_per_sheet = CLAMP (pages_per_sheet, 1, 16); job->copies = copies; job->collate = collate;