]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid crash in the Projection feature
authorazv <azv@opencascade.com>
Fri, 29 Apr 2016 05:14:24 +0000 (08:14 +0300)
committerazv <azv@opencascade.com>
Fri, 29 Apr 2016 05:15:09 +0000 (08:15 +0300)
src/SketchPlugin/SketchPlugin_Projection.cpp

index 7f78c0bbc4aba23ed153dc7026d1994c7bb07bb2..5cccf4c2bad3ed7b5be4c778e7eb6fe502da12a5 100644 (file)
@@ -56,7 +56,7 @@ void SketchPlugin_Projection::execute()
     return;
   FeaturePtr aProjection = ModelAPI_Feature::feature(aRefAttr->object());
 
-  if (!lastResult().get()) {
+  if (!lastResult().get() && aProjection->lastResult().get()) {
     ResultConstructionPtr aConstr = document()->createConstruction(data());
     aConstr->setShape(aProjection->lastResult()->shape());
     aConstr->setIsInHistory(false);