corrects bounding rect for line