Corrected the reading of the "defaultsidewall" statement in the

tech file "extract" section to work correctly when the offset is
negative.  Generally, a negative offset is nonphysical and is just
curve-fitting round-off error, but the existing code was failing
to divide out the factor of 1000 that had been multiplied through
when reading the tech file, resulting in a very wrong offset.
This commit is contained in:
Tim Edwards 2023-02-22 15:30:50 -05:00
parent d4790d2f31
commit be577d4318
2 changed files with 3 additions and 6 deletions

View File

@ -1 +1 @@
8.3.368
8.3.369

View File

@ -3510,11 +3510,8 @@ zinit:
ec = ec->ec_next)
{
ec->ec_cap *= 0.5;
if (ec->ec_offset > 0)
{
ec->ec_offset = (int)(((float)ec->ec_offset / dscale) + 0.5);
ec->ec_offset /= 1000;
}
ec->ec_offset = (int)(((float)ec->ec_offset / dscale) + 0.5);
ec->ec_offset /= 1000;
}
}