Corrected an error in the DEF read that skips a line if a cell

cannot be found.  This particularly screws up the file parsing
if the "END COMPONENTS" line is skipped.
This commit is contained in:
Tim Edwards 2018-01-30 10:01:58 -05:00
parent 944c6a5373
commit 8ef32cb8c1
1 changed files with 1 additions and 1 deletions

View File

@ -1112,7 +1112,7 @@ DefReadComponents(f, rootDef, sname, oscale, total)
if ((defMacro == NULL) || ((defUse = DBCellNewUse(defMacro, usename))
== NULL))
{
LefEndStatement(f);
if (defMacro != NULL) LefEndStatement(f);
break;
}
DBLinkCell(defUse, rootDef);