From 12ed1cb782fdbb02ad10b4b3303048c9385334e8 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Thu, 9 Oct 2014 10:32:37 -0400 Subject: [PATCH] Revert "Ugh" --- openbr/plugins/stasm4.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openbr/plugins/stasm4.cpp b/openbr/plugins/stasm4.cpp index 62c9f8e..799b59d 100644 --- a/openbr/plugins/stasm4.cpp +++ b/openbr/plugins/stasm4.cpp @@ -101,17 +101,16 @@ class StasmTransform : public UntrainableTransform QPointF rightEye; QPointF leftEye; - QString r = pinEyes.at(0).toString(); - QString l = pinEyes.at(1).toString(); - if (src.file.contains("Affine_0") && src.file.contains("Affine_1")) { - rightEye = QtUtils::toPoint(r); - leftEye = QtUtils::toPoint(l); + rightEye = pinEyes.at(0).toPointF(); + leftEye = pinEyes.at(1).toPointF(); if (!rightEye.isNull() && !leftEye.isNull()) ok = true; } if (!ok) { + QString r = pinEyes.at(0).toString(); + QString l = pinEyes.at(1).toString(); if (!r.isNull() && !l.isNull() && src.file.contains(r) && src.file.contains(l)) { rightEye = src.file.get(r, QPointF()); -- libgit2 0.21.4