From: jfa Date: Tue, 22 May 2007 07:06:49 +0000 (+0000) Subject: Fix bug 15990: IOLS. fatal error SIGSEGV on activate Post-Pro for this hdf. X-Git-Tag: V4_0~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4f8858f2e9b1eadb8d2741188da518bfba17bae;p=modules%2Fvisu.git Fix bug 15990: IOLS. fatal error SIGSEGV on activate Post-Pro for this hdf. --- diff --git a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc index f2a227a9..3428d68a 100644 --- a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc +++ b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc @@ -157,7 +157,7 @@ VISU::ScalarMapOnDeformedShape_i //--------------------------------------------------------------- -VISU::Storable* +VISU::Storable* VISU::ScalarMapOnDeformedShape_i ::Restore(SALOMEDS::Study_ptr theStudy, const Storable::TRestoringMap& theMap) @@ -168,20 +168,20 @@ VISU::ScalarMapOnDeformedShape_i QString aFieldName = VISU::Storable::FindValue(theMap,"myScalarFieldName"); int aTimeStampNumber = VISU::Storable::FindValue(theMap,"myScalarFieldName").toInt(); - SetScalarField(aMeshName, - aFieldName, - aTimeStampNumber, - anEntity); - if(!TSuperClass::Restore(theStudy, theMap)) return NULL; - + + SetScalarField(aMeshName, + aFieldName, + aTimeStampNumber, + anEntity); + SetScale(VISU::Storable::FindValue(theMap,"myFactor").toDouble()); myIsColored = VISU::Storable::FindValue(theMap,"myIsColored").toInt(); myColor.R = VISU::Storable::FindValue(theMap,"myColor.R").toDouble(); myColor.G = VISU::Storable::FindValue(theMap,"myColor.G").toDouble(); myColor.B = VISU::Storable::FindValue(theMap,"myColor.B").toDouble(); - + return this; }