graph_displayer_canvas-edge.cc
changeset 178 a96d2a540454
parent 174 95872af46fc4
child 179 1f436ea3ef4f
     1.1 --- a/graph_displayer_canvas-edge.cc	Mon Oct 30 14:57:48 2006 +0000
     1.2 +++ b/graph_displayer_canvas-edge.cc	Mon Oct 30 15:43:13 2006 +0000
     1.3 @@ -76,7 +76,7 @@
     1.4      {
     1.5        for (EdgeIt i((mytab.mapstorage).graph); i!=INVALID; ++i)
     1.6  	{
     1.7 -	  double v=fabs((*actual_map)[i]);
     1.8 +	  double v=(*actual_map)[i];
     1.9  	  int w;
    1.10  	  if(autoscale)
    1.11  	    {
    1.12 @@ -93,16 +93,24 @@
    1.13  	    {
    1.14  	      w=(int)(v*edge_width);
    1.15  	    }
    1.16 -	  if(w<minimum_edge_width)
    1.17 +	  if(w<0)
    1.18  	    {
    1.19 -	      w=minimum_edge_width;
    1.20 +	      edgesmap[i]->hide();
    1.21  	    }
    1.22 -	  if(zoomtrack)
    1.23 +	  else
    1.24  	    {
    1.25 -	      double actual_ppu=get_pixels_per_unit();
    1.26 -	      w=(int)(w/actual_ppu*fixed_zoom_factor);
    1.27 +	      edgesmap[i]->show();
    1.28 +	      if(w<minimum_edge_width)
    1.29 +		{
    1.30 +		  w=minimum_edge_width;
    1.31 +		}
    1.32 +	      if(zoomtrack)
    1.33 +		{
    1.34 +		  double actual_ppu=get_pixels_per_unit();
    1.35 +		  w=(int)(w/actual_ppu*fixed_zoom_factor);
    1.36 +		}
    1.37 +	      edgesmap[i]->setLineWidth(w);
    1.38  	    }
    1.39 -	  edgesmap[i]->setLineWidth(w);
    1.40  	}
    1.41      }
    1.42    else