1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0028616: TNaming - DELETE evolution is not considered by TNaming_NewShapeIterator.

// Fixed TNaming_Builder.
This commit is contained in:
szy
2017-05-30 15:47:27 +03:00
committed by bugmaster
parent e28f12b304
commit fa6fc587b9
2 changed files with 136 additions and 1 deletions

View File

@@ -702,7 +702,7 @@ void TNaming_Builder::Delete(const TopoDS_Shape& oldShape)
throw Standard_ConstructionError("TNaming_Builder : not same evolution");
}
TNaming_RefShape* pns = 0L;
TNaming_RefShape* pns;
TNaming_RefShape* pos;
if (myShapes->myMap.IsBound(oldShape))
@@ -714,6 +714,11 @@ void TNaming_Builder::Delete(const TopoDS_Shape& oldShape)
pos = new TNaming_RefShape(oldShape);
myShapes->myMap.Bind(oldShape, pos);
}
TopoDS_Shape nullShape;
pns = new TNaming_RefShape(nullShape);
myShapes->myMap.Bind(nullShape, pns);
TNaming_Node* pdn = new TNaming_Node(pos,pns);
myAtt->Add(pdn);
UpdateFirstUseOrNextSameShape (pos,pdn);