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:
Milan Hanajik 2023-06-09 09:08:58 +02:00
parent 281aa93b4b
commit aed42818b5

View File

@ -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);
}