Browse Source

Merge branch 'BP_master' of git@git.tk.informatik.tu-darmstadt.de:carlos.garcia/praktikum-holons.git into BP_master

Andreas T. Meyer-Berg 7 năm trước cách đây
mục cha
commit
0dc52d0917
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/ui/view/UnitGraph.java

+ 1 - 1
src/ui/view/UnitGraph.java

@@ -875,7 +875,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
     static int lv=0;
     static int lv=0;
     
     
     public static int getEffectiveIndex(Model m, IGraphedElement e, int timeStep){
     public static int getEffectiveIndex(Model m, IGraphedElement e, int timeStep){
-    	if(e.isStretching())return timeStep*100/(m==null?100:m.getIterations());
+    	if(e.isStretching())return timeStep*100/(m==null?STANDARD_GRAPH_ACCURACY:m.getIterations());
     	else return timeStep%e.getLocalPeriod()*100/e.getLocalPeriod();
     	else return timeStep%e.getLocalPeriod()*100/e.getLocalPeriod();
     }
     }