# HG changeset patch # User hegyi # Date 1123452899 0 # Node ID a27ab230a1787955c679391fa0535e543c8053b7 # Parent 1f158566c3bfa4a546b044e991cf820ab8880070 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. diff -r 1f158566c3bf -r a27ab230a178 mapstorage.cc --- a/mapstorage.cc Sun Aug 07 18:06:41 2005 +0000 +++ b/mapstorage.cc Sun Aug 07 22:14:59 2005 +0000 @@ -74,7 +74,15 @@ double MapStorage::minOfNodeMap(const std::string & name) { NodeIt j(graph); - double min=(*nodemap_storage[name])[j]; + double min; + if(j!=INVALID) + { + min=(*nodemap_storage[name])[j]; + } + else + { + min=0; + } for (; j!=INVALID; ++j) { if( (*nodemap_storage[name])[j]