Merge pull request #2246 from alalek:intersection_loop_bug

This commit is contained in:
Andrey Pavlenko
2014-01-31 18:58:01 +04:00
committed by OpenCV Buildbot

View 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
}
}
}