]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Merge branch 'master' into Dev_1.1.0
authorsbh <sergey.belash@opencascade.com>
Mon, 9 Feb 2015 15:22:48 +0000 (18:22 +0300)
committersbh <sergey.belash@opencascade.com>
Mon, 9 Feb 2015 15:22:48 +0000 (18:22 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index bda3bd879fbf7b681a6ae81cf9ef89b1ea0e4cab..28bb02e15c761a8bc03c2b8a30055b934b364346 100644 (file)
@@ -151,7 +151,7 @@ void SketchPlugin_Sketch::removeFeature(ModelAPI_Feature* theFeature)
   // if the object is not found in the sketch sub-elements, that means that the object is removed already.
   // Find the first empty element and remove it
   if (!isRemoved && aHasEmtpyFeature)
-    data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->remove(NULL);
+    data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->remove(ObjectPtr());
 }
 
 int SketchPlugin_Sketch::numberOfSubs() const