diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index affb3c2..1583b66 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -190,7 +191,7 @@ QList File::namedPoints() const const QVariant &variant = m_metadata[key]; if (variant.canConvert()) { const QPointF point = variant.value(); - if (!std::isnan(point.x()) && !std::isnan(point.y())) + if (!qIsNaN(point.x()) && !qIsNaN(point.y())) landmarks.append(point); } }