From 92bf587a46ad42a4e392958ba79ecc672bc8bb2a Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 20 Mar 2019 10:07:25 -0400 Subject: [PATCH] Fixed an error in the previous commit handling pin labels in GDS input, which failed to update the "lastLabel" record of the cell in the case that the placeholder label being deleted was the last label, leading to labels being lost during GDS input. --- calma/CalmaRdpt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calma/CalmaRdpt.c b/calma/CalmaRdpt.c index d42b7df4..cd5109c2 100644 --- a/calma/CalmaRdpt.c +++ b/calma/CalmaRdpt.c @@ -928,6 +928,8 @@ calmaElementText() cifReadCellDef->cd_labels = lab->lab_next; else sl->lab_next = lab->lab_next; + if (cifReadCellDef->cd_lastLabel == lab) + cifReadCellDef->cd_lastLabel = sl; freeMagic((char *)lab); break; }