diff --git a/src/blackmisc/pqphysicalquantity.cpp b/src/blackmisc/pqphysicalquantity.cpp index fd21f8aa5..db2207e08 100644 --- a/src/blackmisc/pqphysicalquantity.cpp +++ b/src/blackmisc/pqphysicalquantity.cpp @@ -266,7 +266,10 @@ namespace BlackMisc */ template QString CPhysicalQuantity::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); }