gui/graph_displayer_canvas.cc
changeset 1860 27a9a75b957b
parent 1849 a4d1362397fe
child 1888 eed01ce27087
     1.1 --- a/gui/graph_displayer_canvas.cc	Wed Dec 14 18:11:03 2005 +0000
     1.2 +++ b/gui/graph_displayer_canvas.cc	Sat Dec 17 20:55:41 2005 +0000
     1.3 @@ -168,15 +168,15 @@
     1.4            (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].x,
     1.5            (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].y));
     1.6      
     1.7 -    edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this);
     1.8 +    edgesmap[i]=new BrokenEdge(displayed_graph, i, *this);
     1.9      *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
    1.10      edgesmap[i]->property_width_units().set_value(10);    
    1.11      edgesmap[i]->lower_to_bottom();
    1.12      
    1.13      //initializing edge-text as well, to empty string
    1.14  
    1.15 -    xy<double> text_pos=edgesmap[i]->getArrowPos();
    1.16 -    text_pos+=(xy<double>(10,10));
    1.17 +    XY text_pos=mytab.mapstorage.arrow_pos[i];
    1.18 +    text_pos+=(XY(10,10));
    1.19  
    1.20      edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    1.21      edgetextmap[i]->property_fill_color().set_value("darkgreen");