]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix "unresolved symbol" problem on CentOS
authorazv <azv@opencascade.com>
Thu, 25 Aug 2016 04:47:54 +0000 (07:47 +0300)
committerazv <azv@opencascade.com>
Thu, 25 Aug 2016 04:47:54 +0000 (07:47 +0300)
src/SketchAPI/SketchAPI_SketchEntity.cpp

index 3e5f4f82446cbb63600d70da8e938a6104636b91..f6cfdc17a50c1c7b4bca3dbd783ef4c99c8f8278 100644 (file)
@@ -57,7 +57,6 @@ void SketchAPI_SketchEntity::dump(ModelHighAPI_Dumper& theDumper) const
 bool SketchAPI_SketchEntity::isCopy() const
 {
   // check the feature is a copy of another entity
-  std::shared_ptr<SketchPlugin_SketchEntity> aSketchEntity =
-      std::dynamic_pointer_cast<SketchPlugin_SketchEntity>(feature());
-  return aSketchEntity && aSketchEntity->isCopy();
+  AttributeBooleanPtr isCopy = feature()->boolean(SketchPlugin_SketchEntity::COPY_ID());
+  return isCopy.get() && isCopy->value();
 }