Commit e1f451da authored by Claes Sjofors's avatar Claes Sjofors

Xtt, RtHide wasn't always hidden

parent e139bf82
......@@ -6561,9 +6561,10 @@ int rtt_object_parameters(
for ( i = 0; i < rows; i++) {
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_RTVIRTUAL ||
bd[i].attr->Param.Info.Flags & PWR_MASK_RTHIDE ||
(bd[i].attr->Param.Info.Flags & PWR_MASK_PRIVATE &&
bd[i].attr->Param.Info.Flags & PWR_MASK_POINTER))
/* This parameter does not contain any useful information */
/* This parameter does not contain any useful information, or should be hidden */
continue;
elements = 1;
......@@ -6593,6 +6594,7 @@ int rtt_object_parameters(
idx = 0;
for ( i = 0; i < rows; i++) {
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_RTVIRTUAL ||
bd[i].attr->Param.Info.Flags & PWR_MASK_RTHIDE ||
(bd[i].attr->Param.Info.Flags & PWR_MASK_PRIVATE &&
bd[i].attr->Param.Info.Flags & PWR_MASK_POINTER))
/* This parameter does not contain any useful information */
......
......@@ -348,7 +348,8 @@ int ItemBaseObject::open_attributes( XNavBrow *brow, double x, double y)
continue;
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_RTHIDE &&
((brow->usertype == brow_eUserType_XNav &&
!((XNav *)brow->userdata)->gbl.show_allattr) ||
!(((XNav *)brow->userdata)->gbl.show_allattr &&
!(bd[i].attr->Param.Info.Flags & PWR_MASK_DEVHIDEVALUE))) ||
brow->usertype == brow_eUserType_XAttNav))
continue;
......
......@@ -224,6 +224,7 @@ int XAtt::object_attr()
if ( bd[i].flags & gdh_mAttrDef_Shadowed)
continue;
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_RTVIRTUAL ||
bd[i].attr->Param.Info.Flags & PWR_MASK_RTHIDE ||
(bd[i].attr->Param.Info.Flags & PWR_MASK_PRIVATE &&
bd[i].attr->Param.Info.Flags & PWR_MASK_POINTER))
continue;
......
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