Fix math error in IsPointOnLine()
commitd46ff633fa3f700c3314a4043dc60fa40b4d827f
authorDJ Delorie <dj@delorie.com>
Tue, 6 Sep 2011 05:56:33 +0000 (6 01:56 -0400)
committerDJ Delorie <dj@delorie.com>
Tue, 6 Sep 2011 05:56:33 +0000 (6 01:56 -0400)
treeb4075573209d728a5c7b971fc059287689de90d5
parent23fdbee2cd45accc1f11856e47508cc49251687e
Fix math error in IsPointOnLine()

The math in C didn't match the math in the comment (and, apparently,
hasn't for quite some time).

To test: Draw three lines, from 1000,3000 to 1500,2500, then to
2000,3000, then back to the start at 1000,3000.  Without this patch, the
first and last lines are removed and replaced with a copy of the second
line.
src/search.c