From: mpv Date: Thu, 1 Nov 2018 14:49:22 +0000 (+0300) Subject: Fix for ModelAPI_Test1512 X-Git-Tag: End2018~212 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=808630f17ce46a91bc4409497cda2173f58db010;p=modules%2Fshaper.git Fix for ModelAPI_Test1512 --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 4c584ea77..2214929f8 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1828,7 +1828,7 @@ std::shared_ptr Model_Document::producedByFeature( TopoDS_Shape anOldShape; // old shape in the pair old shape->theShape in the named shape TopoDS_Shape aShapeContainer; // old shape of the shape that contains aShape as sub-element Handle(TNaming_NamedShape) aCandidatInThis, aCandidatContainer; - TDF_Label aBodyLab = aBodyData->label(); + TDF_Label aBodyLab = aBodyData->shapeLab(); // use child and this label (the lowest priority) TDF_ChildIDIterator aNSIter(aBodyLab, TNaming_NamedShape::GetID(), Standard_True); bool aUseThis = !aNSIter.More();