Commit 8e3467fe authored by Claes Sjofors's avatar Claes Sjofors

Cross references in LibHier not inserted into crossreference list

parent d633a700
......@@ -243,6 +243,17 @@ void wb_crrgen::load( pwr_tStatus *rsts)
for ( wb_object o = m_sp->object( reflist[i].cid); o; o = o.next()) {
pwr_tAttrRef aref;
// Skip if in LibHier
bool in_libhier = false;
for ( wb_object p = o.parent(); p; p = p.parent()) {
if ( p.cid() == pwr_eClass_LibHier) {
in_libhier = true;
break;
}
}
if ( in_libhier)
continue;
wb_attribute a = m_sp->attribute( o.oid(), reflist[i].body, reflist[i].attr);
if ( reflist[i].is_oid) {
......@@ -599,6 +610,17 @@ void wb_crrgen::write_code( pwr_tStatus *rsts)
for ( int i = 0; i < int(sizeof(codelist)/sizeof(codelist[0])); i++) {
for ( wb_object o = m_sp->object( codelist[i].cid); o; o = o.next()) {
// Skip if in LibHier
bool in_libhier = false;
for ( wb_object p = o.parent(); p; p = p.parent()) {
if ( p.cid() == pwr_eClass_LibHier) {
in_libhier = true;
break;
}
}
if ( in_libhier)
continue;
wb_attribute a = m_sp->attribute( o.oid(), codelist[i].body, codelist[i].attr);
a.value( text);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment