From 8e22b1504ec6dfe1a598bc44ed4124769ccd62a2 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 13 Nov 2019 14:29:19 -0500 Subject: [PATCH] Corrected an error introduced with the extension of extraction methods to multiple entries per device; the resistor length and width calculating routine lost a break statement and would go into an infinite loop for resistors with bends in them. --- extract/ExtBasic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extract/ExtBasic.c b/extract/ExtBasic.c index c3067466..1894d30e 100644 --- a/extract/ExtBasic.c +++ b/extract/ExtBasic.c @@ -2919,7 +2919,8 @@ extResistorTileFunc(tile, pNum) extEnumTilePerim(tile, mask, pNum, extSpecialPerimFunc, (ClientData)FALSE); - if (extSpecialBounds[0] == NULL) devptr = devptr->exts_next; + if (extSpecialBounds[0] != NULL) break; + devptr = devptr->exts_next; } if (devptr != NULL) extTransRec.tr_devrec = devptr;