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

Unified Diff: printing/print_settings.cc

Issue 2461083002: Fix uninitialized memory bug from scaling addition (Closed)
Patch Set: Created 4 years, 2 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/print_settings.cc
diff --git a/printing/print_settings.cc b/printing/print_settings.cc
index c4e22e09bb4b9ba984922f17872122c61084957b..056b6d2085ed6d729316b233fa36fe872184bf1c 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -142,6 +142,7 @@ void PrintSettings::Clear() {
requested_media_ = RequestedMedia();
page_setup_device_units_.Clear();
dpi_ = 0;
+ scale_factor_ = 1.0f;
landscape_ = false;
supports_alpha_blend_ = true;
should_print_backgrounds_ = false;
« 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