|
@@ -265,7 +265,10 @@ public class SimulationManager extends Observable {
|
|
* duration in milliseconds of a step
|
|
* duration in milliseconds of a step
|
|
*/
|
|
*/
|
|
public void setStepDuration(long duration) {
|
|
public void setStepDuration(long duration) {
|
|
- this.duration = duration;
|
|
|
|
|
|
+ if(duration>0)
|
|
|
|
+ this.duration = duration;
|
|
|
|
+ else
|
|
|
|
+ this.duration = 1;
|
|
notifyPanels();
|
|
notifyPanels();
|
|
}
|
|
}
|
|
|
|
|