From: mpv Date: Wed, 24 Jan 2018 08:33:00 +0000 (+0300) Subject: Fix for compilation problems X-Git-Tag: V_3.0.0RC1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0bb3759a49150670a2092701cafb055e11c1818;p=modules%2Fshaper.git Fix for compilation problems --- 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; } }