From: azv Date: Fri, 29 Apr 2016 05:14:24 +0000 (+0300) Subject: Avoid crash in the Projection feature X-Git-Tag: V_2.3.0~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41554da0f65e92a8a876b9d3e61759eda04dc149;p=modules%2Fshaper.git Avoid crash in the Projection feature --- diff --git a/src/SketchPlugin/SketchPlugin_Projection.cpp b/src/SketchPlugin/SketchPlugin_Projection.cpp index 7f78c0bbc..5cccf4c2b 100644 --- a/src/SketchPlugin/SketchPlugin_Projection.cpp +++ b/src/SketchPlugin/SketchPlugin_Projection.cpp @@ -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);