mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 00:50:50 +02:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user