[med-svn] [SCM] aghermann branch, master, updated. 3b87b4f8039ed683022537a0599b7dea069974d2

Andrei Zavada johnhommer at gmail.com
Sun Sep 30 22:40:55 UTC 2012


The following commit has been merged in the master branch:
commit 649f6e4b0d2e19481dbf357a8368b2a2310b01e5
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sun Sep 30 22:11:34 2012 +0300

    MF: preserve tunables when reopening a previous run

diff --git a/src/ui/modelrun-facility.cc b/src/ui/modelrun-facility.cc
index ef7c9db..9388d4c 100644
--- a/src/ui/modelrun-facility.cc
+++ b/src/ui/modelrun-facility.cc
@@ -99,9 +99,9 @@ SModelrunFacility (agh::ach::CModelRun& csim, SExpDesignUI& parent)
 		auto	t = min((size_t)tuple.second, (size_t)agh::ach::TTunable::_basic_tunables - 1);
 		gtk_adjustment_configure(
 			jdst,
-			_p.ED->tunables0[t] * agh::ach::stock[t].display_scale_factor,
-			_p.ED->tlo[t]       * agh::ach::stock[t].display_scale_factor,
-			_p.ED->thi[t]       * agh::ach::stock[t].display_scale_factor,
+			csimulation.tx [t] * agh::ach::stock[t].display_scale_factor,
+			csimulation.tlo[t] * agh::ach::stock[t].display_scale_factor,
+			csimulation.thi[t] * agh::ach::stock[t].display_scale_factor,
 			agh::ach::stock[t].adj_step,
 			agh::ach::stock[t].adj_step * 10,
 			0.);

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list