Commit ac582029 authored by Claes Sjofors's avatar Claes Sjofors

wb, SevHist.Attribute not reset at move when under a PlantHier

parent fa24388b
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include "wb_pwrs.h" #include "wb_pwrs.h"
#include "wb_ldh_msg.h" #include "wb_ldh_msg.h"
#include "wb_pwrb_msg.h" #include "wb_pwrb_msg.h"
#include "pwr_class.h"
#include "pwr_baseclasses.h" #include "pwr_baseclasses.h"
#include "pwr_basecomponentclasses.h" #include "pwr_basecomponentclasses.h"
#include "wb_ldh.h" #include "wb_ldh.h"
...@@ -141,10 +142,14 @@ static pwr_tStatus PostMove ( ...@@ -141,10 +142,14 @@ static pwr_tStatus PostMove (
pwr_sAttrRef Attribute; pwr_sAttrRef Attribute;
/* /*
If father of SevHist has an "ActualValue" attribute, then make this ASup If father of SevHist has an "ActualValue" attribute, then make this SevHist
refer to this attribute. refer to this attribute.
*/ */
if ( Class == pwr_eClass_PlantHier)
// Keep the attribute
return PWRB__SUCCESS;
sts = ldh_ObjidToName(Session, Father, ldh_eName_Hierarchy, Name, sts = ldh_ObjidToName(Session, Father, ldh_eName_Hierarchy, Name,
sizeof(Name), &size); sizeof(Name), &size);
if (EVEN(sts)) return PWRB__SUCCESS; if (EVEN(sts)) return PWRB__SUCCESS;
......
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