From: mpv Date: Mon, 28 Jul 2014 06:17:25 +0000 (+0400) Subject: Fixed the problem with two results in the sketch circle X-Git-Tag: V_0.4.4~142 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4e2be99baa9e0fefec02139658817cd04999a258;p=modules%2Fshaper.git Fixed the problem with two results in the sketch circle --- diff --git a/src/SketchPlugin/SketchPlugin_Circle.cpp b/src/SketchPlugin/SketchPlugin_Circle.cpp index d8be73285..7dd1d3f60 100644 --- a/src/SketchPlugin/SketchPlugin_Circle.cpp +++ b/src/SketchPlugin/SketchPlugin_Circle.cpp @@ -45,7 +45,7 @@ void SketchPlugin_Circle::execute() boost::shared_ptr aCenterPointShape = GeomAlgoAPI_PointBuilder::point(aCenter); //aShapes.push_back(aCenterPointShape); boost::shared_ptr 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 aConstr2 = - document()->createConstruction(data()); + document()->createConstruction(data(), 1); aConstr2->setShape(aCircleShape); aConstr2->setIsInHistory(false); setResult(aConstr2, 1);