Fixed another bug in line-drawing routine.