Fixed a bug when adding a list of new components using a script file, ver. 2.18.1010

This commit is contained in:
Milan Hanajik 2018-10-03 12:17:30 +02:00
parent 63871c9bcc
commit 5da9b1e94e

View File

@ -351,6 +351,7 @@ namespace TBF
if (UpdateCfg(ref cfg, words, ref zeroBasedIdx))
{
flags |= CfgUpdateFlags.RestartRqrd;
cfg.ItemNr = (cmpntEntities.Count > 0) ? (cmpntEntities[cmpntEntities.Count - 1].ItemNr + 1) : 1;
AddOne(cfg.CreateDbEntity());
}