mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Ref T717, return "null" for null PQ
This commit is contained in:
@@ -370,6 +370,7 @@ namespace BlackMisc
|
||||
template<class MU, class PQ>
|
||||
QString CPhysicalQuantity<MU, PQ>::valueRoundedAsString(MU unit, int digits) const
|
||||
{
|
||||
if (this->isNull()) { return QStringLiteral("null"); }
|
||||
const double v = this->valueRounded(unit, digits);
|
||||
return QString::number(v, 'f', digits);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user