# HG changeset patch # User hegyi # Date 1123452899 0 # Node ID c17d61f773193ec2268fb8b956af9463d08ba20e # Parent 78704393218db460b99cb06e56c7bfefc1e95bfa 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 78704393218d -r c17d61f77319 gui/mapstorage.cc --- a/gui/mapstorage.cc Sun Aug 07 18:06:41 2005 +0000 +++ b/gui/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]