handle the case where the line fits exactly into the area