diff options
Diffstat (limited to 'printing/printing_context_cairo.cc')
-rw-r--r-- | printing/printing_context_cairo.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/printing/printing_context_cairo.cc b/printing/printing_context_cairo.cc index c721e3d..17e7885 100644 --- a/printing/printing_context_cairo.cc +++ b/printing/printing_context_cairo.cc @@ -6,7 +6,6 @@ #include "base/logging.h" #include "base/values.h" -#include "printing/print_job_constants.h" #include "printing/print_settings_initializer_gtk.h" #include "printing/units.h" @@ -154,10 +153,10 @@ PrintingContext::Result PrintingContextCairo::UpdatePrintSettings( DCHECK(!in_print_job_); bool landscape; - if (!job_settings.GetBoolean(kSettingLandscape, &landscape)) + if (!GetSettingsFromDict(job_settings, &landscape, NULL)) return OnError(); - settings_.SetOrientation(landscape); + settings_.SetOrientation(landscape); settings_.ranges = ranges; // TODO(kmadhusu): Update other print settings such as number of copies, |