]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for compilation problems
authormpv <mpv@opencascade.com>
Wed, 24 Jan 2018 08:33:00 +0000 (11:33 +0300)
committermpv <mpv@opencascade.com>
Wed, 24 Jan 2018 08:33:25 +0000 (11:33 +0300)
src/SketchPlugin/SketchPlugin_Validators.cpp

index 91728508f83ced9e58f1bb6d9221c842cdde3c34..c95474a5575df96647edc2a9d2b3c3b4cf678fc5 100755 (executable)
@@ -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<SketchPlugin_Feature> aSketchFeature =
           std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
-      isSketchFeature = aSketchFeature;
+      isSketchFeature = aSketchFeature.get() != NULL;
     }
   }