1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027970: Improvement of standard attributes usability - containers.

This commit is contained in:
szy
2017-05-11 17:37:44 +03:00
committed by bugmaster
parent b18a83d4a7
commit 5a1271c8b4
111 changed files with 6038 additions and 1223 deletions

View File

@@ -18,7 +18,6 @@
#include <TDF_Data.hxx>
#include <TDF_Attribute.hxx>
//! Create a transient label tree from persistent data
class StdLPersistent_Data::Parser
{
@@ -44,10 +43,12 @@ public:
// read persistent attribute
Handle(StdObjMgt_Persistent)& aPAttrib = myAttribIter.ChangeValue();
myAttribIter.Next();
// create transient attribute and add it to the label
if (aPAttrib)
theLabel.AddAttribute (aPAttrib->CreateAttribute());
if (aPAttrib) {
Handle (TDF_Attribute) anAtt = aPAttrib->CreateAttribute();
anAtt->SetID();
theLabel.AddAttribute (anAtt);
}
}
// Read child labels count