]> 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:17:25 +0000 (10:17 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Mon, 28 Jul 2014 06:17:25 +0000 (10:17 +0400)
src/SketchPlugin/SketchPlugin_Circle.cpp

index d8be73285033ba3efff5efe4db974950b42c5e15..7dd1d3f601866970c806db4a9ca6435a53e42bbe 100644 (file)
@@ -45,7 +45,7 @@ void SketchPlugin_Circle::execute()
       boost::shared_ptr<GeomAPI_Shape> aCenterPointShape = GeomAlgoAPI_PointBuilder::point(aCenter);
       //aShapes.push_back(aCenterPointShape);
       boost::shared_ptr<ModelAPI_ResultConstruction> aConstr1 = 
-        document()->createConstruction(data());
+        document()->createConstruction(data(), 0);
       aConstr1->setShape(aCenterPointShape);
       aConstr1->setIsInHistory(false);
       setResult(aConstr1, 0);
@@ -64,7 +64,7 @@ void SketchPlugin_Circle::execute()
                                 GeomAlgoAPI_EdgeBuilder::lineCircle(aCenter, aNormal, aRadius);
         aShapes.push_back(aCircleShape);
         boost::shared_ptr<ModelAPI_ResultConstruction> aConstr2 = 
-          document()->createConstruction(data());
+          document()->createConstruction(data(), 1);
         aConstr2->setShape(aCircleShape);
         aConstr2->setIsInHistory(false);
         setResult(aConstr2, 1);