[Lemon-commits] [lemon_svn] alpar: r2455 - hugo/trunk/gui

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:52:49 CET 2006


Author: alpar
Date: Fri Jan  6 11:42:58 2006
New Revision: 2455

Modified:
   hugo/trunk/gui/kruskalbox.cc

Log:
Reformatting: too long code lines.


Modified: hugo/trunk/gui/kruskalbox.cc
==============================================================================
--- hugo/trunk/gui/kruskalbox.cc	(original)
+++ hugo/trunk/gui/kruskalbox.cc	Fri Jan  6 11:42:58 2006
@@ -10,7 +10,8 @@
 void KruskalBox::run()
 {
   Graph g=mapstorage->graph;
-  Graph::EdgeMap<double> * inputmap=((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
+  Graph::EdgeMap<double> * inputmap=
+    ((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
   Graph::EdgeMap<bool> outputmap(g);
   double res=kruskal(g, *inputmap, outputmap);
 
@@ -18,20 +19,24 @@
   {
     if(outputmap[i])
       {
-	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->get_active_text()]))[i]=1;
+	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->
+					 get_active_text()]))[i]=1;
       }
     else
       {
-	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->get_active_text()]))[i]=0;
+	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->
+					 get_active_text()]))[i]=0;
       }
   }
 
   std::ostringstream o;
   o << "Result: " << res;
   resultlabel.set_text(o.str());
-
-  mapstorage->changeActiveMap(true, E_COLOR, (edgemapcbts[OUTPUT])->get_active_text());
-  mapstorage->changeActiveMap(true, E_TEXT, (edgemapcbts[INPUT])->get_active_text());
+  
+  mapstorage->changeActiveMap(true, E_COLOR,
+			      (edgemapcbts[OUTPUT])->get_active_text());
+  mapstorage->changeActiveMap(true, E_TEXT,
+			      (edgemapcbts[INPUT])->get_active_text());
 }
     
 void KruskalBox::build_box()



More information about the Lemon-commits mailing list