mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
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:
+2
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user