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:
@@ -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
|
||||
|
Reference in New Issue
Block a user