Commit ad7db411 authored by claes's avatar claes

Dataname not reseted when object moved

parent fcd6c1b7
/* /*
* Proview $Id: wb_c_asup.cpp,v 1.1 2007-01-04 07:29:02 claes Exp $ * Proview $Id: wb_c_asup.cpp,v 1.2 2008-01-17 14:20:48 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
...@@ -83,9 +83,7 @@ PostMove ( ...@@ -83,9 +83,7 @@ PostMove (
sts = ldh_NameToAttrRef(Session, Name, &Attribute); sts = ldh_NameToAttrRef(Session, Name, &Attribute);
if (EVEN(sts)) { if (EVEN(sts)) return PWRB__SUCCESS;
memset(&Attribute, 0, sizeof(Attribute));
}
sts = ldh_SetObjectPar(Session, Object, "RtBody", "Attribute", sts = ldh_SetObjectPar(Session, Object, "RtBody", "Attribute",
(char *)&Attribute, sizeof(Attribute)); (char *)&Attribute, sizeof(Attribute));
......
/* /*
* Proview $Id: wb_c_dsfast.cpp,v 1.1 2007-01-04 07:29:03 claes Exp $ * Proview $Id: wb_c_dsfast.cpp,v 1.2 2008-01-17 14:20:48 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
...@@ -92,9 +92,7 @@ static pwr_tStatus PostMove ( ...@@ -92,9 +92,7 @@ static pwr_tStatus PostMove (
strcat(Name, ".ActualValue"); strcat(Name, ".ActualValue");
sts = ldh_NameToAttrRef(Session, Name, &Attribute); sts = ldh_NameToAttrRef(Session, Name, &Attribute);
if (EVEN(sts)) { if (EVEN(sts)) return PWRB__SUCCESS;
memset(&Attribute, 0, sizeof(Attribute));
}
sts = ldh_SetObjectPar(Session, Object, "RtBody", "DataName", (char *)&Attribute, sts = ldh_SetObjectPar(Session, Object, "RtBody", "DataName", (char *)&Attribute,
sizeof(Attribute)); sizeof(Attribute));
......
/* /*
* Proview $Id: wb_c_dstrend.cpp,v 1.1 2007-01-04 07:29:03 claes Exp $ * Proview $Id: wb_c_dstrend.cpp,v 1.2 2008-01-17 14:20:48 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
...@@ -81,7 +81,7 @@ static pwr_tStatus PostMove ( ...@@ -81,7 +81,7 @@ static pwr_tStatus PostMove (
pwr_sAttrRef Attribute; pwr_sAttrRef Attribute;
/* /*
If father of ASup has an "ActualValue" attribute, then make this ASup If father of DsTrend has an "ActualValue" attribute, then make this ASup
refer to this attribute. refer to this attribute.
*/ */
...@@ -92,9 +92,7 @@ static pwr_tStatus PostMove ( ...@@ -92,9 +92,7 @@ static pwr_tStatus PostMove (
strcat(Name, ".ActualValue"); strcat(Name, ".ActualValue");
sts = ldh_NameToAttrRef(Session, Name, &Attribute); sts = ldh_NameToAttrRef(Session, Name, &Attribute);
if (EVEN(sts)) { if (EVEN(sts)) return PWRB__SUCCESS;
memset(&Attribute, 0, sizeof(Attribute));
}
sts = ldh_SetObjectPar(Session, Object, "RtBody", "DataName", (char *)&Attribute, sts = ldh_SetObjectPar(Session, Object, "RtBody", "DataName", (char *)&Attribute,
sizeof(Attribute)); sizeof(Attribute));
......
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