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

Unified Diff: printing/print_settings.cc

Issue 8351063: PrintPreview: [LINUX] Update the margin values after flipping the paper orientation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 1 month 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/page_setup_unittest.cc ('k') | 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 70ace6dcf9da36ad74f3b6a60a1ede083fecf2b3..ddf3108e229e2972e1bcc1ecf7d667961d4264b0 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -153,9 +153,6 @@ void PrintSettings::SetPrinterPrintableArea(
header_footer_text_height = ConvertUnit(kSettingHeaderFooterInterstice,
kPointsPerInch, units_per_inch);
}
- page_setup_device_units_.Init(physical_size_device_units,
- printable_area_device_units,
- header_footer_text_height);
PageMargins margins;
switch (margin_type) {
@@ -211,6 +208,10 @@ void PrintSettings::SetPrinterPrintableArea(
page_setup_device_units_.SetRequestedMargins(margins);
else
page_setup_device_units_.ForceRequestedMargins(margins);
+
+ page_setup_device_units_.Init(physical_size_device_units,
+ printable_area_device_units,
+ header_footer_text_height);
}
void PrintSettings::SetCustomMargins(
« no previous file with comments | « printing/page_setup_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698