# HG changeset patch # User hegyi # Date 1162213684 0 # Node ID 9fc3d5170b245f1d5dbb1f6643b4604cd0bfe9b5 # Parent 1e0a66d6b45a6b639a81b07f03f55de762aa4016 Showed map is loaded even if ArrowPos not. diff -r 1e0a66d6b45a -r 9fc3d5170b24 gui_reader.cc --- a/gui_reader.cc Mon Oct 30 12:20:54 2006 +0000 +++ b/gui_reader.cc Mon Oct 30 13:08:04 2006 +0000 @@ -36,15 +36,16 @@ std::map m; x("arrow_pos", m); - if ((int)m.size() != countEdges(mapstorage->graph)) return; - - for (EdgeIt e(mapstorage->graph); e != INVALID; ++e) - { - int edgeid = (int)(*mapstorage->edgemap_storage["label"])[e]; - mapstorage->arrow_pos.set(e, m[edgeid]); - } - mapstorage->ArrowPosReadOK(); - + if ((int)m.size() == countEdges(mapstorage->graph)) + { + for (EdgeIt e(mapstorage->graph); e != INVALID; ++e) + { + int edgeid = (int)(*mapstorage->edgemap_storage["label"])[e]; + mapstorage->arrow_pos.set(e, m[edgeid]); + } + mapstorage->ArrowPosReadOK(); + } + std::map nm; x("active_nodemaps", nm);