fix Sum line length tool after API changes (fix #7335)