From: azv Date: Thu, 25 Aug 2016 04:47:54 +0000 (+0300) Subject: Fix "unresolved symbol" problem on CentOS X-Git-Tag: V_2.5.0~134^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54819bdc67df453dde1c331d6df0bfbaeaf13837;p=modules%2Fshaper.git Fix "unresolved symbol" problem on CentOS --- diff --git a/src/SketchAPI/SketchAPI_SketchEntity.cpp b/src/SketchAPI/SketchAPI_SketchEntity.cpp index 3e5f4f824..f6cfdc17a 100644 --- a/src/SketchAPI/SketchAPI_SketchEntity.cpp +++ b/src/SketchAPI/SketchAPI_SketchEntity.cpp @@ -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 aSketchEntity = - std::dynamic_pointer_cast(feature()); - return aSketchEntity && aSketchEntity->isCopy(); + AttributeBooleanPtr isCopy = feature()->boolean(SketchPlugin_SketchEntity::COPY_ID()); + return isCopy.get() && isCopy->value(); }