COIN-OR::LEMON - Graph Library

Changeset 58:a27ab230a178 in glemon-0.x


Ignore:
Timestamp:
08/08/05 00:14:59 (14 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2124
Message:

Until this commitment gui gave us segmentation fault in the case when no element was on graph_displayer_canvas and a map to visualize by a property has been changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapstorage.cc

    r53 r58  
    7575{
    7676  NodeIt j(graph);
    77   double min=(*nodemap_storage[name])[j];
     77  double min;
     78  if(j!=INVALID)
     79    {
     80      min=(*nodemap_storage[name])[j];
     81    }
     82  else
     83    {
     84      min=0;
     85    }
    7886  for (; j!=INVALID; ++j)
    7987  {
     
    8997{
    9098  EdgeIt j(graph);
    91   double min=(*edgemap_storage[name])[j];
     99  double min;
     100  if(j!=INVALID)
     101    {
     102      min=(*edgemap_storage[name])[j];
     103    }
     104  else
     105    {
     106      min=0;
     107    }
    92108  for (EdgeIt j(graph); j!=INVALID; ++j)
    93109  {
Note: See TracChangeset for help on using the changeset viewer.