Salome HOME
Fix for ModelAPI_Test1512
[modules/shaper.git] / src / Model / Model_Document.cpp
index 4c584ea7782798ee426295b2ebb89574e8482caa..2214929f804a5386af454a27c6bb384313c54495 100755 (executable)
@@ -1828,7 +1828,7 @@ std::shared_ptr<ModelAPI_Feature> 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();