fix a crashing bug if descending a schematic those symbol has a @#resolved_net:... attribute, raw file is loaded and show net_names is enabled.

This commit is contained in:
stefan schippers 2023-09-11 09:24:03 +02:00
parent 4bd758bee7
commit c5420f4f07
1 changed files with 1 additions and 0 deletions

View File

@ -1880,6 +1880,7 @@ int sch_waves_loaded(void)
dbg(1, "sch_waves_loaded(): graph_raw_schname=%s\n", xctx->graph_raw_schname);
for(i = xctx->currsch; i >= 0; i--) {
dbg(1, "sch_waves_loaded(): %d --> %s\n", i, xctx->sch[i]);
if( !xctx->sch[i] ) continue;
if( !strcmp(xctx->graph_raw_schname, xctx->sch[i]) ) {
dbg(1, "sch_waves_loaded(): returning %d\n", i);
return i;