Merged pull request #53 from Dan Moore.

This commit is contained in:
Tim Edwards 2021-02-17 21:15:54 -05:00
parent 15fe4d2d29
commit a887593942
1 changed files with 3 additions and 0 deletions

View File

@ -897,6 +897,9 @@ extSideOverlap(tp, esws)
subcap = (ExtCurStyle->exts_perimCap[ta][outtype] *
MIN(areaAccountedFor, length));
rbp->nreg_cap -= subcap;
/* Ignore residual error at ~zero zeptoFarads. Probably */
/* there should be better handling of round-off here. */
if ((rbp->nreg_cap > -0.001) && (rbp->nreg_cap < 0.001)) rbp->nreg_cap = 0;
if (CAP_DEBUG)
extNregAdjustCap(rbp, -subcap, "obsolete_perimcap");
} else if (CAP_DEBUG)