corrections mineures length_line_from_idx