]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation on Debian cgt/devCEA
authorazv <azv@opencascade.com>
Tue, 10 Oct 2017 10:41:11 +0000 (13:41 +0300)
committerazv <azv@opencascade.com>
Tue, 10 Oct 2017 10:41:11 +0000 (13:41 +0300)
src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp
src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp

index bd57785ef95fbaf3ee299ad758c900855abb8154..ce40fdcafb786ff78ee5302a7e265fa4b437f144 100644 (file)
@@ -128,7 +128,8 @@ void SketchSolver_ConstraintMultiRotation::adjustConstraint()
   AttributeRefAttrPtr aCenterAttr =
       myBaseConstraint->refattr(SketchPlugin_MultiRotation::CENTER_ID());
   std::shared_ptr<PlaneGCSSolver_PointWrapper> aRotCenter =
-      std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(myStorage->entity(aCenterAttr));
+      std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(
+      myStorage->entity(AttributePtr(aCenterAttr)));
   if (aRotCenter)
   {
     GCSPointPtr aCenterPoint = aRotCenter->point();
index 8028c1ddfb0480c2b4340f035d9a2ce6be92692e..a16619076004ab610d885c29d606a6d642839b6f 100644 (file)
@@ -130,7 +130,8 @@ void SketchSolver_ConstraintMultiTranslation::adjustConstraint()
   for (int i = 0; i < 2; ++i)
   {
     std::shared_ptr<PlaneGCSSolver_PointWrapper> aPointWrapper =
-        std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(myStorage->entity(aStartEnd[i]));
+        std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(
+        myStorage->entity(AttributePtr(aStartEnd[i])));
     if (aPointWrapper)
     {
       GCSPointPtr aPnt = aPointWrapper->point();