From 1a6caa895b18b60c5c34e98955fd7d2ff7ec9023 Mon Sep 17 00:00:00 2001 From: "jussi.koskela" Date: Fri, 14 Nov 2014 13:46:33 +0000 Subject: [PATCH] (fixes #5482) SimulateDurationJob does not restore the step length if it reduces it for the last step to reach the target time git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30548 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/manager/SimulateDurationJob.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SimulateDurationJob.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SimulateDurationJob.java index fffc66c0..f411138f 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SimulateDurationJob.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SimulateDurationJob.java @@ -79,6 +79,7 @@ class SimulateDurationJob extends Job { monitor.worked(1); } + solver.setStepLength(base.stepLength); monitor.subTask("Display results"); ((MemoryResult)base.getCurrentResult()).setResult(new GameResult(base, base.results, base.subscription)); -- 2.47.1