# HG changeset patch # User hegyi # Date 1162222993 0 # Node ID a96d2a54045451a80808343782430a3a9bc07bb2 # Parent 40f3006fba2ecf525f830ef87903a231ea1622d9 If visualization is not autoscaled, edges with widths associated with negative map values will be hidden. diff -r 40f3006fba2e -r a96d2a540454 graph_displayer_canvas-edge.cc --- a/graph_displayer_canvas-edge.cc Mon Oct 30 14:57:48 2006 +0000 +++ b/graph_displayer_canvas-edge.cc Mon Oct 30 15:43:13 2006 +0000 @@ -76,7 +76,7 @@ { for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i) { - double v=fabs((*actual_map)[i]); + double v=(*actual_map)[i]; int w; if(autoscale) { @@ -93,16 +93,24 @@ { w=(int)(v*edge_width); } - if(whide(); } - if(zoomtrack) + else { - double actual_ppu=get_pixels_per_unit(); - w=(int)(w/actual_ppu*fixed_zoom_factor); + edgesmap[i]->show(); + if(wsetLineWidth(w); } - edgesmap[i]->setLineWidth(w); } } else diff -r 40f3006fba2e -r a96d2a540454 graph_displayer_canvas-event.cc --- a/graph_displayer_canvas-event.cc Mon Oct 30 14:57:48 2006 +0000 +++ b/graph_displayer_canvas-event.cc Mon Oct 30 15:43:13 2006 +0000 @@ -262,6 +262,8 @@ case GDK_BUTTON_RELEASE: (mytab.mapstorage).modified = true; + is_drawn=true; + isbutton=1; active_node=(mytab.mapstorage).graph.addNode();