From: rnv Date: Wed, 10 Dec 2008 14:46:46 +0000 (+0000) Subject: Fix for IPAL20763 DPE: lost value after dump python. X-Git-Tag: TG_DumpPython_Extension_4~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=925909d61b0e13a157227423e7ea8083626f6dbe;p=modules%2Fkernel.git Fix for IPAL20763 DPE: lost value after dump python. --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_ScalarVariable.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_ScalarVariable.cxx index c6fa46c82..3149d8738 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_ScalarVariable.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_ScalarVariable.cxx @@ -106,7 +106,7 @@ string SALOMEDSImpl_ScalarVariable::SaveToScript() const { case SALOMEDSImpl_GenericVariable::REAL_VAR: { - sprintf(buffer, "%f", myValue); + sprintf(buffer, "%g", myValue); break; } case SALOMEDSImpl_GenericVariable::INTEGER_VAR: