#504.  Calculate length rather than relying on position.  Position isn't
updated when using ContentType.LINES.