From e403e9201778179e70a7e7a7067bc96aa781bb2d Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 27 Apr 2021 14:53:34 -0400 Subject: [PATCH] Correction to the previous commit (didn't work as advertised). --- calma/CalmaRdcl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calma/CalmaRdcl.c b/calma/CalmaRdcl.c index 5f9dbae8..1581c8c3 100644 --- a/calma/CalmaRdcl.c +++ b/calma/CalmaRdcl.c @@ -1166,7 +1166,10 @@ calmaUniqueCell(sname) int snum = 0; h = HashLookOnly(&CifCellTable, sname); - if ((h == NULL) || HashGetValue(h) == 0) return; + + /* Existing entry with zero value indicates that the existing */ + /* cell came from the same GDS file, so don't change anything. */ + if ((h != NULL) && HashGetValue(h) == 0) return; def = DBCellLookDef(sname); if (def == (CellDef *)NULL)