diff -r 23f0afd1a323 -r f60f89147531 graph_displayer_canvas.cc --- a/graph_displayer_canvas.cc Thu Dec 08 14:16:08 2005 +0000 +++ b/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");