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

Unified Diff: printing/print_settings.cc

Issue 2795453002: Use DPI from Print Preview on Windows, handle non square (Closed)
Patch Set: Address comments Created 3 years, 9 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 | « printing/print_settings.h ('k') | printing/print_settings_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings.cc
diff --git a/printing/print_settings.cc b/printing/print_settings.cc
index 008e01819fa4d6bde99b627d0477c1192525409d..aef18c33bd24e74a12b4ec6f1c3ac1aedf4a2ed5 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -172,7 +172,8 @@ void PrintSettings::Clear() {
device_name_.clear();
requested_media_ = RequestedMedia();
page_setup_device_units_.Clear();
- dpi_ = 0;
+ dpi_[0] = 0;
+ dpi_[1] = 0;
scale_factor_ = 1.0f;
rasterize_pdf_ = false;
landscape_ = false;
« no previous file with comments | « printing/print_settings.h ('k') | printing/print_settings_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698