</BUG>
for (int index = 2; index < p_polyline.plaline_len(-2); ++index)
{
PlaLineInt new_line = reposition_line(line_arr, index);
if (new_line == null) continue;
<BUG>line_arr[index] = new_line;
</BUG>
Polyline result = new Polyline(line_arr);
return skip_segments_of_length_0(result);
}

return new_line;
}
private Polyline reposition_lines(Polyline p_polyline)
{
if (p_polyline.plaline_len() < 5) return p_polyline;
PlaLineIntAlist line_arr = p_polyline.alist_copy(0);
for (int index = 2; index < p_polyline.plaline_len(-2); ++index)
{
PlaLineInt new_line = reposition_line(line_arr, index);
if (new_line == null) continue;
line_arr.set(index, new_line);
Polyline result = new Polyline(line_arr);
return skip_segments_of_length_0(result);
}
