Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: printing/printing_context_cairo.cc

Issue 8046028: Fix issue with print preview on Chrome OS just displaying an error message. (Closed)
Patch Set: Removed extra {} Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_cairo.cc
diff --git a/printing/printing_context_cairo.cc b/printing/printing_context_cairo.cc
index c4a7105e352f4ad55b20cb1ea99cd69dcfc022d9..a000d4847d4e7461103b8d1269f2f54e0dc2ef1e 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698