]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation errors
authorazv <azv@opencascade.com>
Mon, 27 Feb 2017 10:34:36 +0000 (13:34 +0300)
committerazv <azv@opencascade.com>
Mon, 27 Feb 2017 10:34:36 +0000 (13:34 +0300)
src/SketchSolver/SketchSolver_Constraint.cpp

index 1ac6bc83b10da26e4985ae164160a6258446b5c1..38519051451fb490757040353fcf4f9818541b07 100644 (file)
@@ -159,7 +159,7 @@ void SketchSolver_Constraint::update()
     return;
   }
 
-  AttributeDoublePtr aValueAttr = myBaseConstraint->real(SketchPlugin_Constraint::VALUE());
+  AttributePtr aValueAttr = myBaseConstraint->attribute(SketchPlugin_Constraint::VALUE());
   if (aValueAttr)
     myStorage->update(aValueAttr);
 
@@ -187,7 +187,7 @@ void SketchSolver_Constraint::getAttributes(
 
   myType = TYPE(myBaseConstraint);
 
-  AttributeDoublePtr aValueAttr = aData->real(SketchPlugin_Constraint::VALUE());
+  AttributePtr aValueAttr = aData->attribute(SketchPlugin_Constraint::VALUE());
   if (aValueAttr) {
     PlaneGCSSolver_AttributeBuilder aValueBuilder;
     theValue = aValueBuilder.createAttribute(aValueAttr);