diff -r a222eb109e52 -r 39d59aee2a1a gui/broken_edge.cc --- a/gui/broken_edge.cc Thu Jun 16 18:58:15 2005 +0000 +++ b/gui/broken_edge.cc Fri Jun 17 12:25:53 2005 +0000 @@ -2,7 +2,7 @@ #include #include -BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p) : Line(g), isbutton(false) +BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false) { my_points=new Gnome::Art::Point[3]; @@ -110,9 +110,12 @@ { case GDK_BUTTON_PRESS: //we mark the location of the event to be able to calculate parameters of dragging - clicked_x=e->button.x; - clicked_y=e->button.y; - isbutton=true; + if(gdc.get_actual_tool()!=CREATE_NODE) + { + clicked_x=e->button.x; + clicked_y=e->button.y; + isbutton=true; + } break; case GDK_BUTTON_RELEASE: isbutton=false;