Unverified Commit 4157b334 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8944 from DonLakeFlyer/Deprecated

Fix deprecated usage for 5.15.0
parents 71e4c784 a986c029
......@@ -1450,13 +1450,13 @@ QMap<QString, FactMetaData*> FactMetaData::createMapFromJsonArray(const QJsonArr
QVariant FactMetaData::cookedMax(void) const
{
// We have to be careful with cooked min/max. Running the raw values through the translator could flip min and max.
return qMax(_rawTranslator(_rawMax), _rawTranslator(_rawMin));
return qMax(_rawTranslator(_rawMax).toDouble(), _rawTranslator(_rawMin).toDouble());
}
QVariant FactMetaData::cookedMin(void) const
{
// We have to be careful with cooked min/max. Running the raw values through the translator could flip min and max.
return qMin(_rawTranslator(_rawMax), _rawTranslator(_rawMin));
return qMin(_rawTranslator(_rawMax).toDouble(), _rawTranslator(_rawMin).toDouble());
}
void FactMetaData::setVolatileValue(bool bValue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment