From 925909d61b0e13a157227423e7ea8083626f6dbe Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 10 Dec 2008 14:46:46 +0000 Subject: [PATCH] Fix for IPAL20763 DPE: lost value after dump python. --- src/SALOMEDSImpl/SALOMEDSImpl_ScalarVariable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2