imgproc/intersection: fix loop index
authorAlexander Alekhin <alexander.alekhin@itseez.com>
Fri, 31 Jan 2014 10:42:38 +0000 (14:42 +0400)
committerAlexander Alekhin <alexander.alekhin@itseez.com>
Fri, 31 Jan 2014 10:42:38 +0000 (14:42 +0400)
modules/imgproc/src/intersection.cpp

index cdee366..dfebd26 100644 (file)
@@ -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
             }
         }
     }