Some fixes in unit system

This commit is contained in:
jriegel
2013-12-08 19:48:02 +01:00
parent b6025019df
commit cfa7045408
10 changed files with 275 additions and 203 deletions

View File

@@ -58,7 +58,7 @@ QString UnitsSchemaInternal::schemaTranslate(Base::Quantity quant,double &factor
factor = 1000.0;
}else if(UnitValue < 100000000000.0 ){
unitString = QString::fromLatin1("km");
factor = 10000000.0;
factor = 1000000.0;
}else{ // bigger then 1000 km -> scientific notation
unitString = QString::fromLatin1("mm");
factor = 1.0;