Diff of /src/hugin_cpfind/localfeatures/PointMatch.h [a5a76e] .. [53eab2] Maximize Restore

  Switch to side-by-side view

--- a/src/hugin_cpfind/localfeatures/PointMatch.h
+++ b/src/hugin_cpfind/localfeatures/PointMatch.h
@@ -56,7 +56,14 @@
 {
 public: 
 	inline bool operator() (const PointMatchPtr& a, const PointMatchPtr& b) const { 
-		return (a->_img1_kp->_score < b->_img1_kp->_score); 
+		if (a->_img1_kp->_score < b->_img1_kp->_score) {
+			return true;
+		} else if (a->_img1_kp->_score > b->_img1_kp->_score) {
+			return false;
+		} else {
+			// same score, order by _x coordinate (this also removes duplicate matches)
+			return (a->_img1_kp->_y < b->_img1_kp->_y);
+		}
 	} 
 };