diff -r 075aaa0a4e6f -r 27a9a75b957b gui/graph_displayer_canvas.cc --- a/gui/graph_displayer_canvas.cc Wed Dec 14 18:11:03 2005 +0000 +++ b/gui/graph_displayer_canvas.cc Sat Dec 17 20:55:41 2005 +0000 @@ -168,15 +168,15 @@ (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].x, (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].y)); - edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this); + edgesmap[i]=new BrokenEdge(displayed_graph, i, *this); *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green"); edgesmap[i]->property_width_units().set_value(10); edgesmap[i]->lower_to_bottom(); //initializing edge-text as well, to empty string - xy text_pos=edgesmap[i]->getArrowPos(); - text_pos+=(xy(10,10)); + XY text_pos=mytab.mapstorage.arrow_pos[i]; + text_pos+=(XY(10,10)); edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, ""); edgetextmap[i]->property_fill_color().set_value("darkgreen");