mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
refs #197 stringification of null quantity should yield "undefined"
This commit is contained in:
committed by
Klaus Basan
parent
a4e3ac6f40
commit
8043caab6d
@@ -266,7 +266,10 @@ namespace BlackMisc
|
|||||||
*/
|
*/
|
||||||
template <class MU, class PQ> QString CPhysicalQuantity<MU, PQ>::convertToQString(bool i18n) const
|
template <class MU, class PQ> QString CPhysicalQuantity<MU, PQ>::convertToQString(bool i18n) const
|
||||||
{
|
{
|
||||||
if (this->isNull()) return (i18n) ? QCoreApplication::translate("CPhysicalQuantity", "undefined") : "undefined";
|
if (this->isNull())
|
||||||
|
{
|
||||||
|
return i18n ? QCoreApplication::translate("CPhysicalQuantity", "undefined") : "undefined";
|
||||||
|
}
|
||||||
return this->valueRoundedWithUnit(this->getUnit(), -1, i18n);
|
return this->valueRoundedWithUnit(this->getUnit(), -1, i18n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user