diff options
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printing_context.cc | 3 | ||||
-rw-r--r-- | printing/printing_context_no_system_dialog.cc | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/printing/printing_context.cc b/printing/printing_context.cc index edbcaa4..9b3b8ae 100644 --- a/printing/printing_context.cc +++ b/printing/printing_context.cc @@ -47,9 +47,6 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings( const PageRanges& ranges) { ResetSettings(); - if (settings_.dpi() == 0) - UseDefaultSettings(); - if (!PrintSettingsInitializer::InitSettings(job_settings, ranges, &settings_)) { NOTREACHED(); diff --git a/printing/printing_context_no_system_dialog.cc b/printing/printing_context_no_system_dialog.cc index 7fd2cee..869620f 100644 --- a/printing/printing_context_no_system_dialog.cc +++ b/printing/printing_context_no_system_dialog.cc @@ -81,6 +81,10 @@ PrintingContext::Result PrintingContextNoSystemDialog::UseDefaultSettings() { PrintingContext::Result PrintingContextNoSystemDialog::UpdatePrinterSettings( bool target_is_pdf, bool external_preview) { + + if (settings_.dpi() == 0) + UseDefaultSettings(); + return OK; } |