From 9300af90cd8067f8a9f62adb1afd63b3e9aa395b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 31 Jan 2014 14:42:38 +0400 Subject: [PATCH] imgproc/intersection: fix loop index --- modules/imgproc/src/intersection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/intersection.cpp b/modules/imgproc/src/intersection.cpp index cdee36663..dfebd260e 100644 --- a/modules/imgproc/src/intersection.cpp +++ b/modules/imgproc/src/intersection.cpp @@ -231,7 +231,7 @@ int rotatedRectangleIntersection( const RotatedRect& rect1, const RotatedRect& r // Found a dupe, remove it std::swap(intersection[j], intersection.back()); intersection.pop_back(); - i--; // restart check + j--; // restart check } } }