imgproc/intersection: fix loop index

This commit is contained in:
Alexander Alekhin 2014-01-31 14:42:38 +04:00
parent 9041c31813
commit 9300af90cd

View File

@ -231,7 +231,7 @@ int rotatedRectangleIntersection( const RotatedRect& rect1, const RotatedRect& r
// Found a dupe, remove it // Found a dupe, remove it
std::swap(intersection[j], intersection.back()); std::swap(intersection[j], intersection.back());
intersection.pop_back(); intersection.pop_back();
i--; // restart check j--; // restart check
} }
} }
} }