]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation on Linux of SketchAPI project
authorazv <artem.zhidkov@opencascade.com>
Tue, 14 Mar 2017 12:26:35 +0000 (15:26 +0300)
committerazv <artem.zhidkov@opencascade.com>
Tue, 14 Mar 2017 12:26:35 +0000 (15:26 +0300)
src/SketchAPI/SketchAPI_Sketch.cpp

index ec05c13773bd2b13a26eee659cda9bd2dd9a18a3..d9fff77cebdb054398ca78d6a3ba6589f84605ea 100644 (file)
@@ -626,7 +626,7 @@ std::shared_ptr<ModelHighAPI_Interface> SketchAPI_Sketch::setFilletWithRadius(
   // set radius for just created arc
   FeaturePtr anArc = aSketch->subFeature(aNbSubs - 1);
   if (anArc->getKind() == SketchPlugin_Arc::ID())
-    setRadius(ModelHighAPI_RefAttr(anArc->lastResult()), ModelHighAPI_Double(theRadius));
+    setRadius(ModelHighAPI_RefAttr(ObjectPtr(anArc->lastResult())), ModelHighAPI_Double(theRadius));
 
   return aFilletFeature;
 }