Commit bbae5ae5 authored by vovanium's avatar vovanium

Corrected weird inch to mm ratio

parent ed3dbe8b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment