return new Polyline(new_lines);
}
}
else if (bend)
{
<BUG>PlaLineInt[] check_line_arr = new PlaLineInt[trace_polyline.plaline_len(+1)];

for (int index = 0; index < trace_polyline.plaline_len(-1); ++index)
{
check_line_arr[index] = trace_polyline.plaline(index);
}
check_line_arr[check_line_arr.length - 2] = other_trace_line;
check_line_arr[check_line_arr.length - 1] = other_prev_trace_line;</BUG>
PlaLineInt new_line = reposition_line(check_line_arr, trace_polyline.plaline_len(-2));

return new Polyline(new_lines);
}
}
else if (bend)
{
PlaLineIntAlist check_line_arr = new PlaLineIntAlist(trace_polyline.plaline_len(+1));
trace_polyline.alist_append_to(check_line_arr, 0,trace_polyline.plaline_len(-1));
check_line_arr.add( other_trace_line);
check_line_arr.add( other_prev_trace_line);
PlaLineInt new_line = reposition_line(check_line_arr, trace_polyline.plaline_len(-2));
