]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for IPAL20763 DPE: lost value after dump python.
authorrnv <rnv@opencascade.com>
Wed, 10 Dec 2008 14:46:46 +0000 (14:46 +0000)
committerrnv <rnv@opencascade.com>
Wed, 10 Dec 2008 14:46:46 +0000 (14:46 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_ScalarVariable.cxx

index c6fa46c825d1fb7708637ca4042a991ddc80d185..3149d8738693532f5e145ffadd16bf35f1969c95 100644 (file)
@@ -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: