fix undo regression on embedded examples due to prev commit

This commit is contained in:
Stefan Frederik 2022-01-14 17:07:17 +01:00
parent 627d122937
commit 231660989a
1 changed files with 2 additions and 2 deletions

View File

@ -848,10 +848,10 @@ void read_xschem_file(FILE *fd)
read_line(fd, 0); /* skip garbage after '[' */ read_line(fd, 0); /* skip garbage after '[' */
if(!found) { if(!found) {
load_sym_def(xctx->inst[xctx->instances-1].name, fd); load_sym_def(xctx->inst[xctx->instances-1].name, fd);
found = 1; found = 2;
} }
} }
if(!found) { if(found != 2) {
char *str; char *str;
int n; int n;
while(1) { /* skip embedded [ ... ] */ while(1) { /* skip embedded [ ... ] */