From f4f8858f2e9b1eadb8d2741188da518bfba17bae Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 22 May 2007 07:06:49 +0000 Subject: [PATCH] Fix bug 15990: IOLS. fatal error SIGSEGV on activate Post-Pro for this hdf. --- src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; } -- 2.39.2