mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024755: TDF_Label::AddAttribute() reverses the order of added attributes
Test case and new draw command for issue CR24755 Fix of regression linked with test case bug24047. Fix of bug361 regression on Linux.
This commit is contained in:
@@ -550,7 +550,12 @@ void TDF_Label::AddToNode (const TDF_LabelNodePtr& toNode,
|
||||
|
||||
anAttribute->myTransaction = toNode->Data()->Transaction(); /// myData->Transaction();
|
||||
anAttribute->mySavedTransaction = 0;
|
||||
|
||||
//append to the end of the attribute list
|
||||
dummyAtt.Nullify();
|
||||
for (TDF_AttributeIterator itr (toNode); itr.More(); itr.Next())
|
||||
dummyAtt = itr.Value();
|
||||
|
||||
toNode->AddAttribute(dummyAtt,anAttribute);
|
||||
toNode->AttributesModified(anAttribute->myTransaction != 0);
|
||||
//if (myData->NotUndoMode()) anAttribute->AfterAddition();
|
||||
|
Reference in New Issue
Block a user