From: azv Date: Tue, 10 Oct 2017 10:41:11 +0000 (+0300) Subject: Fix compilation on Debian X-Git-Tag: V_2.9.1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cebc389b9c6b16a2a68510b04702655a40fd91e8;p=modules%2Fshaper.git Fix compilation on Debian --- diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp index bd57785ef..ce40fdcaf 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp @@ -128,7 +128,8 @@ void SketchSolver_ConstraintMultiRotation::adjustConstraint() AttributeRefAttrPtr aCenterAttr = myBaseConstraint->refattr(SketchPlugin_MultiRotation::CENTER_ID()); std::shared_ptr aRotCenter = - std::dynamic_pointer_cast(myStorage->entity(aCenterAttr)); + std::dynamic_pointer_cast( + myStorage->entity(AttributePtr(aCenterAttr))); if (aRotCenter) { GCSPointPtr aCenterPoint = aRotCenter->point(); diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp index 8028c1ddf..a16619076 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp @@ -130,7 +130,8 @@ void SketchSolver_ConstraintMultiTranslation::adjustConstraint() for (int i = 0; i < 2; ++i) { std::shared_ptr aPointWrapper = - std::dynamic_pointer_cast(myStorage->entity(aStartEnd[i])); + std::dynamic_pointer_cast( + myStorage->entity(AttributePtr(aStartEnd[i]))); if (aPointWrapper) { GCSPointPtr aPnt = aPointWrapper->point();