Skip to content

Commit

Permalink
oops goofed one
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckwagoncomputing committed Jul 17, 2023
1 parent f7948cb commit fdd1f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function calcPinSize(pin, cdiv, connector, pinfo) {
// without overlapping pins.
var closest = 1000000;
for (var ii = 0; ii < connector.info.image.pins.length; ii++) {
var tinfo = connector.image.info.image.pins[ii];
var tinfo = connector.info.image.pins[ii];
var distance = Math.pow((tinfo.x - pinfo.x), 2) + Math.pow((tinfo.y - pinfo.y), 2);
if (tinfo.pin != pin.pin && (!closest || distance < closest)) {
closest = distance;
Expand Down

0 comments on commit fdd1f43

Please sign in to comment.