diff options
author | abodenha@google.com <abodenha@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 20:33:45 +0000 |
---|---|---|
committer | abodenha@google.com <abodenha@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 20:33:45 +0000 |
commit | ee09defb3f3e612e70b4fe0b963a11f5796ccef9 (patch) | |
tree | e29f4bc4ce984df2fb413e111eeb336e1e28624f /printing | |
parent | fcb30046c11368fefa058fe8444f7432802fae3e (diff) | |
download | chromium_src-ee09defb3f3e612e70b4fe0b963a11f5796ccef9.zip chromium_src-ee09defb3f3e612e70b4fe0b963a11f5796ccef9.tar.gz chromium_src-ee09defb3f3e612e70b4fe0b963a11f5796ccef9.tar.bz2 |
Fix issue with print preview on Chrome OS just displaying an error message.
Default settings were not getting set up after a recent change to settings
handling.
BUG=http://code.google.com/p/chromium-os/issues/detail?id=20787
TEST=
Review URL: http://codereview.chromium.org/8046028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103005 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printing_context_cairo.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/printing/printing_context_cairo.cc b/printing/printing_context_cairo.cc index c4a7105..a000d48 100644 --- a/printing/printing_context_cairo.cc +++ b/printing/printing_context_cairo.cc @@ -148,6 +148,9 @@ PrintingContext::Result PrintingContextCairo::UpdatePrinterSettings( if (!job_settings.GetBoolean(kSettingLandscape, &landscape)) return OnError(); + if (settings_.dpi() == 0) + UseDefaultSettings(); + settings_.SetOrientation(landscape); settings_.ranges = ranges; |