mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected the GDS read routine so that the "gds noduplicates"
option does not get undermined by GDS files that have cell instances appear before cell definitions.
This commit is contained in:
+13
-1
@@ -1262,7 +1262,19 @@ calmaFindCell(name, was_called, predefined)
|
||||
if (was_called) *was_called = FALSE;
|
||||
}
|
||||
else
|
||||
if (was_called) *was_called = TRUE;
|
||||
{
|
||||
if (was_called)
|
||||
{
|
||||
if (*was_called == TRUE)
|
||||
{
|
||||
def = DBCellLookDef(name);
|
||||
if ((def != NULL) && (def->cd_flags & CDAVAILABLE))
|
||||
if (CalmaNoDuplicates)
|
||||
if (predefined) *predefined = TRUE;
|
||||
}
|
||||
*was_called = TRUE;
|
||||
}
|
||||
}
|
||||
return (CellDef *) HashGetValue(h);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user