Found another place where a bounds check on the clip area was not

done (at all), again resulting in negative capacitances.
This commit is contained in:
Tim Edwards 2022-06-01 04:54:59 +00:00
parent 8d985ea766
commit 3d4b3ad914
1 changed files with 4 additions and 0 deletions

View File

@ -4017,6 +4017,10 @@ extNodeAreaFunc(tile, arg)
{
TITORECT(tile, &r);
GEOCLIP(&r, extNodeClipArea);
/* Check if the tile is outside the clip area */
if ((r.r_xtop <= r.r_xbot) || (r.r_ytop < r.r_ybot)) continue;
area = (dlong)(r.r_xtop - r.r_xbot) * (dlong)(r.r_ytop - r.r_ybot);
}
else area = (dlong)(TOP(tile) - BOTTOM(tile)) * (dlong)(RIGHT(tile) - LEFT(tile));