From 4e2be99baa9e0fefec02139658817cd04999a258 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 28 Jul 2014 10:17:25 +0400 Subject: [PATCH] Fixed the problem with two results in the sketch circle --- src/SketchPlugin/SketchPlugin_Circle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2