mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected a crash condition that can occur if a GDS file pointed
to by GDS_FILE does not exist.
This commit is contained in:
+2
-1
@@ -826,7 +826,8 @@ calmaProcessDef(def, outf, do_library)
|
||||
/* This is a rare error, but if the subcell is inside */
|
||||
/* another vendor GDS, it would not normally be output. */
|
||||
|
||||
DBPropGet(def->cd_parents->cu_parent, "GDS_FILE", &isReadOnly);
|
||||
DBPropGet((def->cd_parents->cu_parent == NULL) ? def :
|
||||
def->cd_parents->cu_parent, "GDS_FILE", &isReadOnly);
|
||||
if (!isReadOnly || isAbstract)
|
||||
TxError("Calma output error: Can't find GDS file \"%s\" "
|
||||
"for vendor cell \"%s\". Using magic's "
|
||||
|
||||
Reference in New Issue
Block a user