]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
DOF value visualization correction.
authornds <nds@opencascade.com>
Wed, 20 Apr 2016 11:30:51 +0000 (14:30 +0300)
committernds <nds@opencascade.com>
Wed, 20 Apr 2016 11:31:17 +0000 (14:31 +0300)
src/SketchSolver/SketchSolver_Manager.cpp

index 43c6e7cce47a1de19040f43169e8ed628dcfbb32..38125d26773dc14376b3d08041088b0d9a398b84 100644 (file)
@@ -574,9 +574,8 @@ void SketchSolver_Manager::degreesOfFreedom()
     myDoF[aDoFIt->first] = aDoFIt->second;
     // change attribute value
     std::ostringstream aStream;
-    std::string aValue = "DOF(degree of freedom) = ";
-    aStream << aDoFIt->second;
-    aDoFIt->first->data()->string(SketchPlugin_Sketch::SOLVER_DOF())->setValue(aValue);
+    aStream << "DOF(degree of freedom) = " << aDoFIt->second;
+    aDoFIt->first->data()->string(SketchPlugin_Sketch::SOLVER_DOF())->setValue(aStream.str());
 
     Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
   }