resetting latestX when clearing out data due to --monotonic

--monotonic wasn't working correctly, since the x-variable wasn't being reset
when monotonicity was broken. fixed
This commit is contained in:
Dima Kogan 2012-12-14 10:27:59 -08:00
parent 1a15457b81
commit 751d902844

View File

@ -488,9 +488,10 @@ sub mainThread
{
if( defined $latestX && $domain[0] < $latestX )
{
# the x-coordinate of the new point is in the past, so I wipe out all the data for this curve
# and start anew
# the x-coordinate of the new point is in the past, so I wipe out
# all the data and start anew
clearCurves();
$latestX = undef;
}
else
{ $latestX = $domain[0]; }