Upgrade from 2.32 to 2.33 takes care for rounding of Volume and TestTime after a conversion to double.
This commit is contained in:
parent
281aa93b4b
commit
aed42818b5
@ -1323,6 +1323,12 @@ namespace TBF.UI.Settings
|
||||
singlePrecStr = Convert.ToSingle(t.Qto).ToString();
|
||||
if (t.Qto.ToString().Length > 2 * singlePrecStr.Length) t.Qto = double.Parse(singlePrecStr);
|
||||
|
||||
singlePrecStr = Convert.ToSingle(t.Volume).ToString();
|
||||
if (t.Volume.ToString().Length > 2 * singlePrecStr.Length) t.Volume = double.Parse(singlePrecStr);
|
||||
|
||||
singlePrecStr = Convert.ToSingle(t.TestTime).ToString();
|
||||
if (t.TestTime.ToString().Length > 2 * singlePrecStr.Length) t.TestTime = double.Parse(singlePrecStr);
|
||||
|
||||
session.SaveOrUpdate(t);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user