From b52de075e1c110d1d312a23f7234f2ae7c5fec7c Mon Sep 17 00:00:00 2001 From: jriegel Date: Thu, 5 Dec 2013 08:54:46 +0100 Subject: [PATCH] Small clearifikation about the usage of Units interface --- src/Base/UnitsSchemaInternal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Base/UnitsSchemaInternal.cpp b/src/Base/UnitsSchemaInternal.cpp index 519a605b1..62463e84f 100644 --- a/src/Base/UnitsSchemaInternal.cpp +++ b/src/Base/UnitsSchemaInternal.cpp @@ -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())); } //