Index: trunk/src_plugins/rbs_routing/stretch.c =================================================================== --- trunk/src_plugins/rbs_routing/stretch.c (revision 38768) +++ trunk/src_plugins/rbs_routing/stretch.c (revision 38769) @@ -8,11 +8,18 @@ rbsr_map_debug_dump(&rbss->map, "rbss1.dump"); gl = htpp_get(&rbss->map.robj2grbs, line); +rnd_trace("line=%p -> %p\n", line, gl); if (gl == NULL) { rnd_message(RND_MSG_ERROR, "rbsr_stretch_line_begin(): can't stretch this line (not in the grbs map)\n"); return -1; } + htpp_pop(&rbss->map.robj2grbs, line); + grbs_path_remove_line(&rbss->map.grbs, gl); + + rbsr_map_debug_draw(&rbss->map, "rbss2.svg"); + rbsr_map_debug_dump(&rbss->map, "rbss2.dump"); + return 0; }