From 0d00130a2fb708d8aed0230a6bf5ebab8b4a7713 Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 22 Apr 2016 15:32:06 +0300 Subject: [PATCH] Fix compilation on Debian 7 --- src/SketchPlugin/SketchPlugin_Projection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SketchPlugin/SketchPlugin_Projection.cpp b/src/SketchPlugin/SketchPlugin_Projection.cpp index c4af99b80..9adacbb67 100644 --- a/src/SketchPlugin/SketchPlugin_Projection.cpp +++ b/src/SketchPlugin/SketchPlugin_Projection.cpp @@ -53,7 +53,7 @@ void SketchPlugin_Projection::execute() return; FeaturePtr aProjection = ModelAPI_Feature::feature(aRefAttr->object()); - if (!lastResult()) { + if (!lastResult().get()) { ResultConstructionPtr aConstr = document()->createConstruction(data()); aConstr->setShape(std::shared_ptr()); aConstr->setIsInHistory(false); -- 2.39.2