1.1 --- a/gui/graph_displayer_canvas-event.cc Tue Aug 23 15:57:12 2005 +0000
1.2 +++ b/gui/graph_displayer_canvas-event.cc Tue Aug 23 16:27:59 2005 +0000
1.3 @@ -564,7 +564,8 @@
1.4 Edge clicked_edge=INVALID;
1.5
1.6 //find the activated item between texts
1.7 - active_item=(get_item_at(e->button.x, e->button.y));
1.8 + window_to_world (e->button.x, e->button.y, clicked_x, clicked_y);
1.9 + active_item=(get_item_at(clicked_x, clicked_y));
1.10 for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
1.11 {
1.12 if(edgetextmap[i]==active_item)
1.13 @@ -576,9 +577,6 @@
1.14 //if it was not between texts, search for it between edges
1.15 if(clicked_edge==INVALID)
1.16 {
1.17 - window_to_world (e->button.x, e->button.y, clicked_x, clicked_y);
1.18 - active_item=(get_item_at(clicked_x, clicked_y));
1.19 -
1.20 for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
1.21 {
1.22 //at the same time only one can be active
1.23 @@ -592,7 +590,8 @@
1.24 if(clicked_edge!=INVALID)
1.25 {
1.26 // the id map is not editable
1.27 - if (nodemap_to_edit == "id") return 0;
1.28 + if (edgemap_to_edit == "id") return 0;
1.29 +
1.30 //If there is already edited edge, it has to be saved first
1.31 if(entrywidget.is_visible())
1.32 {