Fix build problem on Qt 4.6.x

This commit is contained in:
Gaute Lindkvist 2019-07-15 14:09:27 +02:00
parent 3898b97c8a
commit 7a77b5688a

View File

@ -141,9 +141,9 @@ void RicfFieldReader<cvf::Color3f>::readFieldData(cvf::Color3f& fieldValue, QTex
QString fieldStringValue;
RicfFieldReader<QString>::readFieldData(fieldStringValue, inputStream, errorMessageContainer);
if (QColor::isValidColor(fieldStringValue))
QColor qColor(fieldStringValue);
if (qColor.isValid())
{
QColor qColor(fieldStringValue);
fieldValue = RiaColorTools::fromQColorTo3f(qColor);
}
}