1
0
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:
szy
2014-04-10 17:50:49 +04:00
committed by apn
parent 65812bd0e4
commit d01cc61d44
6 changed files with 50 additions and 9 deletions

View File

@@ -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();