]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for ModelAPI_Test1512
authormpv <mpv@opencascade.com>
Thu, 1 Nov 2018 14:49:22 +0000 (17:49 +0300)
committermpv <mpv@opencascade.com>
Mon, 19 Nov 2018 08:45:52 +0000 (11:45 +0300)
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();