Commit 52900892 authored by Claes Sjofors's avatar Claes Sjofors

Collection window fix

parent 944874d9
...@@ -544,6 +544,8 @@ void XColWind::signal_insert_cb( void *ctx, void *parent_node, ...@@ -544,6 +544,8 @@ void XColWind::signal_insert_cb( void *ctx, void *parent_node,
unsigned int a_offset; unsigned int a_offset;
unsigned int a_dim; unsigned int a_dim;
pwr_tTid a_tid; pwr_tTid a_tid;
unsigned int a_flags = 0;
pwr_sAttrRef ar;
pwr_tStatus sts; pwr_tStatus sts;
ItemCollect *item; ItemCollect *item;
char *s; char *s;
...@@ -587,11 +589,20 @@ void XColWind::signal_insert_cb( void *ctx, void *parent_node, ...@@ -587,11 +589,20 @@ void XColWind::signal_insert_cb( void *ctx, void *parent_node,
strcat( name, "."); strcat( name, ".");
strcat( name, trace_attr); strcat( name, trace_attr);
sts = gdh_GetAttributeCharacteristics( name, &a_type_id, &a_size, &a_offset, sts = gdh_NameToAttrref( pwr_cNObjid, name, &ar);
if ( EVEN(sts)) return;
sts = gdh_GetAttributeCharAttrref( &ar, &a_type_id, &a_size, &a_offset,
&a_dim); &a_dim);
if ( EVEN(sts)) return; if ( EVEN(sts)) return;
sts = gdh_GetAttributeFlags( &ar, &a_flags);
if ( EVEN(sts)) return;
sts = gdh_GetAttrRefTid( &ar, &a_tid);
if ( EVEN(sts)) return;
item = new ItemCollect( brow, aref.Objid, attr, NULL, item = new ItemCollect( brow, aref.Objid, attr, NULL,
flow_eDest_IntoLast, a_type_id, a_tid, a_size, 0, 0); flow_eDest_IntoLast, a_type_id, a_tid, a_size, a_flags, 0);
} }
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