From bbae5ae5e2f7296954309127dc90a79ea1268875 Mon Sep 17 00:00:00 2001 From: vovanium Date: Fri, 26 Mar 2010 19:34:47 +0000 Subject: [PATCH] Corrected weird inch to mm ratio --- common/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index b4607248bd..e1574e5a28 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -458,7 +458,7 @@ double To_User_Unit( bool is_metric, double val, int internal_unit_value ) double value; if( is_metric ) - value = val * 25.4000508001016 / internal_unit_value; + value = val * 25.4 / internal_unit_value; else value = val / internal_unit_value; @@ -474,7 +474,7 @@ int From_User_Unit( bool is_metric, double val, int internal_unit_value ) double value; if( is_metric ) - value = val * internal_unit_value / 25.4000508001016; + value = val * internal_unit_value / 25.4; else value = val * internal_unit_value;