Browse Source

Made solution to previous fix 1% better

Ludwig Tietze 6 years ago
parent
commit
80fb44bc07
1 changed files with 1 additions and 1 deletions
  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;
     
     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();
     }