Commit 8063cd9d authored by Claes Sjofors's avatar Claes Sjofors

Ge value dynamic fix for enum with referenced attribute

parent 93ad20d2
......@@ -4026,8 +4026,16 @@ int GeValue::connect( grow_tObject object, glow_sTraceData *trace_data)
case pwr_eType_Mask: {
// Get attribute tid
pwr_sAttrRef ar;
pwr_tAName aname;
sts = gdh_NameToAttrref( pwr_cNObjid, parsed_name, &ar);
if ( parsed_name[0] == '&') {
sts = dyn->graph->get_reference_name( parsed_name, aname);
if ( EVEN(sts)) return sts;
}
else
strcpy( aname, parsed_name);
sts = gdh_NameToAttrref( pwr_cNObjid, aname, &ar);
if ( EVEN(sts)) break;
sts = gdh_GetAttrRefTid( &ar, &tid);
break;
......
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