some fixes in quantity

This commit is contained in:
jriegel
2013-12-06 23:25:19 +01:00
parent 83e63a67b1
commit 75216d9d8c
3 changed files with 13 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ QString UnitsSchemaInternal::schemaTranslate(Base::Quantity quant,double &factor
factor = 1.0;
}else if(UnitValue < 10000000.0){
unitString = QString::fromLatin1("m");
factor = 10000.0;
factor = 1000.0;
}else if(UnitValue < 100000000000.0 ){
unitString = QString::fromLatin1("km");
factor = 10000000.0;