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:
parent
d4790d2f31
commit
be577d4318
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue