diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-08-27 18:11:30 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-08-27 18:11:30 (GMT) |
commit | bc50ee241e2267cc7cc34b3598b047f335995662 (patch) | |
tree | 2e6b28eeca777766c2596851c73d983047385fa2 /shell | |
parent | d7d241459ad309ebccf2aa296beb26f41b8da459 (diff) |
Create always a portrait cairo surface and rotate when needed for
2007-08-27 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/pdf/ev-poppler.cc: (pdf_print_context_free),
(pdf_document_file_exporter_begin),
(pdf_document_file_exporter_do_page):
* shell/ev-jobs.c: (ev_job_print_run):
* shell/ev-window.c: (ev_window_print_dialog_response_cb):
Create always a portrait cairo surface and rotate when needed for
landscape. It fixes printing problems in real printers.
svn path=/trunk/; revision=2643
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-jobs.c | 2 | ||||
-rw-r--r-- | shell/ev-window.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index c78b28c..6934f60 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -720,7 +720,7 @@ ev_job_print_run (EvJobPrint *job) fc.paper_height = job->height; fc.orientation = job->orientation; fc.duplex = FALSE; - fc.pages_per_sheet = job->pages_per_sheet; + fc.pages_per_sheet = MAX (1, job->pages_per_sheet); ev_document_doc_mutex_lock (); ev_file_exporter_begin (EV_FILE_EXPORTER (document), &fc); diff --git a/shell/ev-window.c b/shell/ev-window.c index 9700746..32d52fd 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2332,7 +2332,7 @@ ev_window_print_dialog_response_cb (GtkDialog *dialog, gdouble width; gdouble height; GtkPrintPages print_pages; - EvFileExporterOrientation orientation; + EvFileExporterOrientation orientation = EV_FILE_EXPORTER_PORTRAIT; const gchar *file_format; if (response == GTK_RESPONSE_CANCEL) { |