[Lemon-commits] [lemon_svn] hegyi: r3031 - glemon/trunk

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:51:57 CET 2006


Author: hegyi
Date: Mon Oct 30 14:08:04 2006
New Revision: 3031

Modified:
   glemon/trunk/gui_reader.cc

Log:
Showed map is loaded even if ArrowPos not.

Modified: glemon/trunk/gui_reader.cc
==============================================================================
--- glemon/trunk/gui_reader.cc	(original)
+++ glemon/trunk/gui_reader.cc	Mon Oct 30 14:08:04 2006
@@ -36,15 +36,16 @@
   std::map<int, XY > 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<int, std::string> nm;
   x("active_nodemaps", nm);
 



More information about the Lemon-commits mailing list