COIN-OR::LEMON - Graph Library

Changeset 176:9fc3d5170b24 in glemon-0.x


Ignore:
Timestamp:
10/30/06 14:08:04 (13 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3031
Message:

Showed map is loaded even if ArrowPos? not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui_reader.cc

    r174 r176  
    3737  x("arrow_pos", m);
    3838
    39   if ((int)m.size() != countEdges(mapstorage->graph)) return;
    40 
    41   for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
    42   {
    43     int edgeid = (int)(*mapstorage->edgemap_storage["label"])[e];
    44     mapstorage->arrow_pos.set(e, m[edgeid]);
    45   }
    46   mapstorage->ArrowPosReadOK();
    47 
     39  if ((int)m.size() == countEdges(mapstorage->graph))
     40    {
     41      for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
     42        {
     43          int edgeid = (int)(*mapstorage->edgemap_storage["label"])[e];
     44          mapstorage->arrow_pos.set(e, m[edgeid]);
     45        }
     46      mapstorage->ArrowPosReadOK();
     47    }
     48 
    4849  std::map<int, std::string> nm;
    4950  x("active_nodemaps", nm);
Note: See TracChangeset for help on using the changeset viewer.