]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix problem with unit tests on CentOS
authorazv <artem.zhidkov@opencascade.com>
Fri, 31 Mar 2017 12:36:41 +0000 (15:36 +0300)
committerazv <artem.zhidkov@opencascade.com>
Fri, 31 Mar 2017 12:36:41 +0000 (15:36 +0300)
src/SketchSolver/SketchSolver_ConstraintFixed.cpp

index 3ee49eccf2e09f3f39e2243df1549732afffd675..7cf8a2abe0a1b387cccd92852b887dfe8909f1c5 100644 (file)
@@ -8,7 +8,7 @@
 #include <PlaneGCSSolver_PointWrapper.h>
 
 #include <GeomDataAPI_Point2D.h>
-#include <SketchPlugin_SketchEntity.h>
+#include <SketchPlugin_Feature.h>
 
 #include <cmath>
 
@@ -127,8 +127,8 @@ void SketchSolver_ConstraintFixed::getAttributes(
 {
   if (myBaseFeature) {
     // if the feature is copy, do not move it
-    std::shared_ptr<SketchPlugin_SketchEntity> aSketchFeature =
-        std::dynamic_pointer_cast<SketchPlugin_SketchEntity>(myBaseFeature);
+    std::shared_ptr<SketchPlugin_Feature> aSketchFeature =
+        std::dynamic_pointer_cast<SketchPlugin_Feature>(myBaseFeature);
     if (aSketchFeature && aSketchFeature->isCopy()) {
       myStorage->setNeedToResolve(true);
       return;