]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed the problem with two results in the sketch circle
authormpv <mikhail.ponikarov@opencascade.com>
Mon, 28 Jul 2014 06:09:59 +0000 (10:09 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Mon, 28 Jul 2014 06:09:59 +0000 (10:09 +0400)
src/Model/Model_Document.cpp

index c50b4a05b44f6a52465d4c441b8617d93596e355..a69ef1a93a9d3a2f7588a39e2d77ea46da857d51 100644 (file)
@@ -723,7 +723,7 @@ boost::shared_ptr<ModelAPI_ResultConstruction> Model_Document::createConstructio
   }
   if (!aResult) {
     aResult = boost::shared_ptr<ModelAPI_ResultConstruction>(new Model_ResultConstruction);
-    storeResult(theFeatureData, aResult);
+    storeResult(theFeatureData, aResult, theIndex);
   }
   return aResult;
 }
@@ -739,7 +739,7 @@ boost::shared_ptr<ModelAPI_ResultBody> Model_Document::createBody(
   }
   if (!aResult) {
     aResult = boost::shared_ptr<ModelAPI_ResultBody>(new Model_ResultBody);
-    storeResult(theFeatureData, aResult);
+    storeResult(theFeatureData, aResult, theIndex);
   }
   return aResult;
 }
@@ -755,7 +755,7 @@ boost::shared_ptr<ModelAPI_ResultPart> Model_Document::createPart(
   }
   if (!aResult) {
     aResult = boost::shared_ptr<ModelAPI_ResultPart>(new Model_ResultPart);
-    storeResult(theFeatureData, aResult);
+    storeResult(theFeatureData, aResult, theIndex);
   }
   return aResult;
 }