]> www.fi.muni.cz Git - evince.git/commitdiff
Fix endless loop when pages_per_sheet is 0. Fixes bug #498248.
authorDarren Kenny <darren.kenny@sun.com>
Tue, 20 Nov 2007 13:58:13 +0000 (13:58 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Tue, 20 Nov 2007 13:58:13 +0000 (13:58 +0000)
2007-11-20  Darren Kenny  <darren.kenny@sun.com>
* 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

ChangeLog
shell/ev-jobs.c

index 61763a00c5b1222515ac593b7624f4f133f8ccb4..928e6ba28b9cdf097ac58a53267872a9aed1e373 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-20  Darren Kenny  <darren.kenny@sun.com>
+
+       * 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  <carlosgc@gnome.org>
 
        * data/evince-toolbar.xml:
index 84eb365cd17c290512f4320a73a8a92ea522b4c2..8c59af877265ae8413e2ca68e9fd984a9166492a 100644 (file)
@@ -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;