Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small clearifikation about the usage of Units interface
  • Loading branch information
jriegel committed Dec 5, 2013
1 parent 894529a commit b52de07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Base/UnitsSchemaInternal.cpp
Expand Up @@ -38,7 +38,9 @@ QString UnitsSchemaInternal::schemaTranslate(Base::Quantity quant,double &factor
{
double UnitValue = quant.getValue();
Unit unit = quant.getUnit();

// sending back the choosen values:
unitString = QString::fromAscii(quant.getUnit().getString().c_str());
factor = 1.0;
return QString::fromAscii("%1 %2").arg(UnitValue).arg(QString::fromAscii(unit.getString().c_str()));
}
//
Expand Down

0 comments on commit b52de07

Please sign in to comment.