From: nds Date: Wed, 20 Apr 2016 11:30:51 +0000 (+0300) Subject: DOF value visualization correction. X-Git-Tag: V_2.3.0~173 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=40f068508f96e32703de3140bf8b71815f8e39be;p=modules%2Fshaper.git DOF value visualization correction. --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 43c6e7cce..38125d267 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -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)); }