schematic_waves_loaded(): look for waveforms in parent hierarchies
This commit is contained in:
parent
f5a737159d
commit
554c1666b8
|
|
@ -1763,9 +1763,12 @@ static double get_unit(const char *val)
|
||||||
|
|
||||||
int schematic_waves_loaded(void)
|
int schematic_waves_loaded(void)
|
||||||
{
|
{
|
||||||
if(xctx->values && xctx->raw_schname)
|
int i;
|
||||||
if( !strcmp(xctx->raw_schname, xctx->sch[0]) ||
|
if(xctx->values && xctx->raw_schname) {
|
||||||
!strcmp(xctx->raw_schname, xctx->sch[xctx->currsch]) ) return 1;
|
for(i = 0 ; i <= xctx->currsch; i++) {
|
||||||
|
if( !strcmp(xctx->raw_schname, xctx->sch[i]) ) return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue