Commit c7ff3962 authored by claes's avatar claes

AttrObject could not be opened

parent d7ca8fa0
/* /*
* Proview $Id: wb_wattnav.cpp,v 1.16 2007-01-18 07:49:19 claes Exp $ * Proview $Id: wb_wattnav.cpp,v 1.17 2007-02-05 09:32:24 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -748,7 +748,6 @@ int WAttNav::object_attr() ...@@ -748,7 +748,6 @@ int WAttNav::object_attr()
if ( bodydef[j].Par->Output.Info.Type == pwr_eType_Buffer) if ( bodydef[j].Par->Output.Info.Type == pwr_eType_Buffer)
continue; continue;
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_ARRAY ) {
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_INVISIBLE ) if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_INVISIBLE )
continue; continue;
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_DISABLEATTR && if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_DISABLEATTR &&
...@@ -760,13 +759,13 @@ int WAttNav::object_attr() ...@@ -760,13 +759,13 @@ int WAttNav::object_attr()
sts = ldh_ArefANameToAref( ldhses, &ar, parname, &aar); sts = ldh_ArefANameToAref( ldhses, &ar, parname, &aar);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
sts = ldh_AttributeDisabled( ldhses, &ar, &disabled); sts = ldh_AttributeDisabled( ldhses, &aar, &disabled);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
if ( disabled) if ( disabled)
continue; continue;
} }
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_ARRAY ) {
elements = bodydef[j].Par->Output.Info.Elements; elements = bodydef[j].Par->Output.Info.Elements;
if ( bodydef[j].ParClass == pwr_eClass_Output && if ( bodydef[j].ParClass == pwr_eClass_Output &&
...@@ -884,6 +883,14 @@ int WAttNav::object_attr() ...@@ -884,6 +883,14 @@ int WAttNav::object_attr()
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_INVISIBLE ) if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_INVISIBLE )
continue; continue;
if ( bodydef[j].Par->Output.Info.Flags & PWR_MASK_CLASS)
new WItemAttrObject( brow, ldhses, objid, NULL,
flow_eDest_IntoLast, parname,
bodydef[j].Par->Output.Info.Type,
bodydef[j].Par->Output.Info.Size, false, 0,
bodydef[j].Par->Output.Info.Flags,
body, 0);
else
new WItemAttr( brow, ldhses, objid, NULL, new WItemAttr( brow, ldhses, objid, NULL,
flow_eDest_IntoLast, parname, flow_eDest_IntoLast, parname,
bodydef[j].Par->Output.Info.Type, bodydef[j].Par->Output.Info.Type,
......
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