closed #2494: Fix some typo

This commit is contained in:
boyu0 2013-08-23 14:41:49 +08:00
parent 3f23a4a661
commit 9a3a03d6ef
1 changed files with 2 additions and 2 deletions

View File

@ -176,13 +176,13 @@ bool Point::isLineIntersect(const Point& A, const Point& B,
if (*S == 0 || *T == 0)
{
// Lines incident
if (C.x != D.x)
if (A.x != B.x)
{
isOneDemensionLineIntersect(A.x, B.x, C.x, D.x, S);
}
else
{
isOneDemensionLineIntersect(A.x, B.x, C.x, D.x, S);
isOneDemensionLineIntersect(A.y, B.y, C.y, D.y, T);
}
return true;