From b0bb3759a49150670a2092701cafb055e11c1818 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 24 Jan 2018 11:33:00 +0300 Subject: [PATCH] Fix for compilation problems --- src/SketchPlugin/SketchPlugin_Validators.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_Validators.cpp b/src/SketchPlugin/SketchPlugin_Validators.cpp index 91728508f..c95474a55 100755 --- a/src/SketchPlugin/SketchPlugin_Validators.cpp +++ b/src/SketchPlugin/SketchPlugin_Validators.cpp @@ -1626,11 +1626,11 @@ bool SketchPlugin_SketchFeatureValidator::isValid(const AttributePtr& theAttribu bool isSketchFeature = aRefAttr->isObject(); if (isSketchFeature) { FeaturePtr aFeature = ModelAPI_Feature::feature(aRefAttr->object()); - isSketchFeature = aFeature; + isSketchFeature = aFeature.get() != NULL; if (isSketchFeature) { std::shared_ptr aSketchFeature = std::dynamic_pointer_cast(aFeature); - isSketchFeature = aSketchFeature; + isSketchFeature = aSketchFeature.get() != NULL; } } -- 2.39.2