Commit b9a839d9 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Use std::isnan

parent b6c74202
......@@ -101,7 +101,12 @@ QValidator::State KoUnitDoubleSpinBox::validate(QString &input, int &pos) const
const double value = valueFromText( number );
double newVal = 0.0;
#ifdef Q_CC_MSVC
if (!isnan(value)) {
if (!std::isnan(value)) {
bool ok;
const KoUnit unit = KoUnit::fromSymbol(unitName, &ok);
if ( ok )
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment