Corrected bad reference to GDS_FILE property when it may not exist.

This commit is contained in:
Tim Edwards 2020-03-27 16:51:23 -04:00
parent 74ea0a29b4
commit d6b4b014d6
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ calmaDumpStructure(def, outf, calmaDefHash, filename)
chklibname = (char *)DBPropGet(edef, "GDS_FILE", &isReadOnly);
/* Is the library name the same? */
if (isAbstract && !strcmp(filename, chklibname))
if (isAbstract && isReadOnly && !strcmp(filename, chklibname))
{
/* Same library, so keep the cellname and mark the cell */
/* as having been written to GDS. */