From 048263021af8ecca421541223f9f65e5587e685f Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 23 May 2007 10:28:20 +0000 Subject: [PATCH] Fix for Bug IPAL16044 - IOLS. fatal error SIGSEGV on some presentations --- src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc index bab79a4b..3046fbcd 100644 --- a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc +++ b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc @@ -160,14 +160,14 @@ VISU::ScalarMapOnDeformedShape_i ::Restore(SALOMEDS::Study_ptr theStudy, const Storable::TRestoringMap& theMap) { + if(!TSuperClass::Restore(theStudy, theMap)) + return NULL; + QString aMeshName = VISU::Storable::FindValue(theMap,"myScalarMeshName"); - VISU::Entity anEntity = VISU::Entity(VISU::Storable::FindValue(theMap,"myScalarFieldName").toInt()); + VISU::Entity anEntity = VISU::Entity(VISU::Storable::FindValue(theMap,"myScalarEntity").toInt()); QString aFieldName = VISU::Storable::FindValue(theMap,"myScalarFieldName"); - int aTimeStampNumber = VISU::Storable::FindValue(theMap,"myScalarFieldName").toInt(); - - if(!TSuperClass::Restore(theStudy, theMap)) - return NULL; + int aTimeStampNumber = VISU::Storable::FindValue(theMap,"myScalarIteration").toInt(); SetScalarField(aMeshName, aFieldName, -- 2.39.2