Commit 27481ad2 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Added deci-, centi-, milli-, kilometer to valid height_units

parent 40005c73
......@@ -100,7 +100,11 @@ bool is_height_units(const char *units)
bool status
= (u0=='m' && (!units[1] || strncmp(units, "meter", 5) == 0))
|| (!units[2] && units[1]=='m' && (u0=='c' || u0=='d' || u0=='k'));
|| (!units[2] && units[1]=='m' && (u0=='c' || u0=='d' || u0=='k'))
|| (strncmp(units, "decimeter", 9) == 0)
|| (strncmp(units, "centimeter", 10) == 0)
|| (strncmp(units, "millimeter", 10) == 0)
|| (strncmp(units, "kilometer", 9) == 0);
return status;
}
......
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