Base: Fix pressure unit problem in internal unit schema

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-04-06 17:18:07 +01:00 committed by wmayer
parent be1240a977
commit 72b73d8208

View File

@ -88,9 +88,12 @@ QString UnitsSchemaInternal::schemaTranslate(Base::Quantity quant,double &factor
unitString = QString::fromLatin1("kPa");
factor = 1.0;
}else if(UnitValue < 10000000.0){
unitString = QString::fromLatin1("GPa");
unitString = QString::fromLatin1("MPa");
factor = 1000.0;
}else{ // bigger then 1000 GPa -> scientific notation
}else if(UnitValue < 10000000000.0){
unitString = QString::fromLatin1("GPa");
factor = 1000000.0;
}else{ // bigger -> scientific notation
unitString = QString::fromLatin1("Pa");
factor = 1.0;
}