Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/pdf
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-10-22 13:25:20 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-10-22 13:25:20 (GMT)
commit80db4b8b5f7e0e49a9dd5208dcd55ab7cb80b16c (patch)
tree776cb94730e1b63b43d29fda15b25ba5c449bb89 /backend/pdf
parentb70b608a4ff0f7472d2b7ab5935cbd8db4718998 (diff)
Fix a crash when printing with the gnome-print dialog. Fixes bug #488939.
2007-10-22 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin): * shell/ev-print-job.c: (ev_print_job_class_init): Fix a crash when printing with the gnome-print dialog. Fixes bug #488939. svn path=/trunk/; revision=2713
Diffstat (limited to 'backend/pdf')
-rw-r--r--backend/pdf/ev-poppler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 4a78341..c7f4eee 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1530,7 +1530,7 @@ pdf_document_file_exporter_begin (EvFileExporter *exporter,
pdf_document->print_ctx = g_new0 (PdfPrintContext, 1);
ctx = pdf_document->print_ctx;
ctx->format = fc->format;
- ctx->pages_per_sheet = fc->pages_per_sheet;
+ ctx->pages_per_sheet = CLAMP (fc->pages_per_sheet, 1, 16);
ctx->paper_width = fc->paper_width;
ctx->paper_height = fc->paper_height;