]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bug #1170: wrong object names in Main objects field Partition
authordbv <dbv@opencascade.com>
Fri, 25 Dec 2015 16:55:56 +0000 (19:55 +0300)
committerdbv <dbv@opencascade.com>
Fri, 25 Dec 2015 16:56:08 +0000 (19:56 +0300)
Additional fix

src/Model/Model_BodyBuilder.cpp

index 476e22ace55e122a536b9f91fc66e80b49c8b1ee..eeb1edf6f3af64518c4d921e41e6514ffd207b97 100755 (executable)
@@ -780,7 +780,7 @@ std::shared_ptr<GeomAPI_Shape> Model_BodyBuilder::shape()
 {
   std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
   if (aData) {
-    TDF_Label& aShapeLab = aData->shapeLab();
+    TDF_Label aShapeLab = aData->shapeLab();
     Handle(TDF_Reference) aRef;
     if (aShapeLab.FindAttribute(TDF_Reference::GetID(), aRef)) {
       aShapeLab = aRef->Get();