equal
deleted
inserted
replaced
450 active_item->get_bounds(x1, y1, x2, y2); |
450 active_item->get_bounds(x1, y1, x2, y2); |
451 coos.push_back(Gnome::Art::Point((x1+x2)/2,(y1+y2)/2)); |
451 coos.push_back(Gnome::Art::Point((x1+x2)/2,(y1+y2)/2)); |
452 |
452 |
453 target_item->get_bounds(x1, y1, x2, y2); |
453 target_item->get_bounds(x1, y1, x2, y2); |
454 coos.push_back(Gnome::Art::Point((x1+x2)/2,(y1+y2)/2)); |
454 coos.push_back(Gnome::Art::Point((x1+x2)/2,(y1+y2)/2)); |
|
455 |
|
456 // set the coordinates of the arrow on the new edge |
|
457 MapStorage& ms = mytab.mapstorage; |
|
458 ms.arrow_pos.set(active_edge, |
|
459 (ms.coords[ms.graph.source(active_edge)] + |
|
460 ms.coords[ms.graph.target(active_edge)])/ 2.0); |
455 |
461 |
456 //drawing new edge |
462 //drawing new edge |
457 edgesmap[active_edge]=new BrokenEdge(displayed_graph, active_edge, |
463 edgesmap[active_edge]=new BrokenEdge(displayed_graph, active_edge, |
458 *this); |
464 *this); |
459 *(edgesmap[active_edge]) << |
465 *(edgesmap[active_edge]) << |