mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected lefWrite, which was not initializing the count of items
written, so that a LEF output with no ports would fail to write the OBS ... END around the obstruction geometry.
This commit is contained in:
+2
-2
@@ -987,9 +987,9 @@ calmaElementText()
|
||||
{
|
||||
idx = sl->lab_flags & PORT_NUM_MASK;
|
||||
if (idx > i) i = idx;
|
||||
if ((sl != lab) && !strcmp(sl->lab_text, textbody))
|
||||
if ((idx > 0) && (sl != lab) && !strcmp(sl->lab_text, textbody))
|
||||
{
|
||||
i = (sl->lab_flags & PORT_NUM_MASK) - 1;
|
||||
i = idx - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -836,6 +836,7 @@ lefWriteMacro(def, f, scale, hide)
|
||||
/* List of pins (ports) (to be refined?) */
|
||||
|
||||
lc.lefMode = LEF_MODE_PORT;
|
||||
lc.numWrites = 0;
|
||||
|
||||
/* Determine the maximum port number, then output ports in order */
|
||||
maxport = -1;
|
||||
|
||||
Reference in New Issue
Block a user