From 0ff353b671e48dfb0b3f489e5ea51d9217056e36 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 2 Apr 2014 13:35:33 +0200 Subject: [PATCH] refs #197, isNull PQ converted to "undefined" --- src/blackmisc/pqphysicalquantity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blackmisc/pqphysicalquantity.cpp b/src/blackmisc/pqphysicalquantity.cpp index 0e3f951d1..8bf4d92cf 100644 --- a/src/blackmisc/pqphysicalquantity.cpp +++ b/src/blackmisc/pqphysicalquantity.cpp @@ -5,6 +5,7 @@ #include "blackmisc/pqallquantities.h" #include "blackmiscfreefunctions.h" +#include namespace BlackMisc { @@ -262,6 +263,7 @@ namespace BlackMisc */ template QString CPhysicalQuantity::convertToQString(bool i18n) const { + if (this->isNull()) return (i18n) ? QCoreApplication::translate("CPhysicalQuantity", "undefined") : "undefined"; return this->valueRoundedWithUnit(this->getUnit(), -1, i18n); }