COIN-OR::LEMON - Graph Library

Changeset 1597:15b51d278bf0 in lemon-0.x for gui/new_map_win.cc


Ignore:
Timestamp:
07/27/05 13:35:13 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2101
Message:

No maps with the same name can be added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/new_map_win.cc

    r1593 r1597  
    9090  if((point_num<=1)&&(valid_double)&&(!mapname.empty()))
    9191    {
     92      int abortion=0;
    9293      if(edge.get_active())
    9394        {
    94           gdc.addNewEdgeMap(def_val,mapname);
     95          abortion=gdc.addNewEdgeMap(def_val,mapname);
    9596        }
    9697      else
    9798        {
    98           gdc.addNewNodeMap(def_val,mapname);
     99          abortion=gdc.addNewNodeMap(def_val,mapname);
    99100        }
    100       name.set_text("");
    101       default_value.set_text("0");
    102       hide();
     101      if(!abortion)
     102        {
     103          name.set_text("");
     104          default_value.set_text("0");
     105          hide();
     106        }
    103107    }
    104108}
Note: See TracChangeset for help on using the changeset viewer.