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
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user