diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 44c94a3..9ece43f 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -188,8 +188,11 @@ QList File::namedPoints() const QList landmarks; foreach (const QString &key, localMetadata().keys()) { const QVariant &variant = m_metadata[key]; - if (variant.canConvert()) - landmarks.append(variant.value()); + if (variant.canConvert()) { + const QPointF point = variant.value(); + if (!std::isnan(point.x()) && !std::isnan(point.y())) + landmarks.append(point); + } } return landmarks; }