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

Unified Diff: printing/units.cc

Issue 2116283002: Don't let rounding prematurely influence document size when printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@620456-2
Patch Set: bug 467579 Created 4 years, 4 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/units.h ('k') | printing/units_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/units.cc
diff --git a/printing/units.cc b/printing/units.cc
index dcee9ea56afd3821d9c8555467f3f35c89701369..6340b62521e05b8ad97d3f7ab21a1bf802e25021 100644
--- a/printing/units.cc
+++ b/printing/units.cc
@@ -9,7 +9,7 @@
namespace printing {
-int ConvertUnit(int value, int old_unit, int new_unit) {
+int ConvertUnit(double value, int old_unit, int new_unit) {
DCHECK_GT(new_unit, 0);
DCHECK_GT(old_unit, 0);
// With integer arithmetic, to divide a value with correct rounding, you need
« no previous file with comments | « printing/units.h ('k') | printing/units_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698