From: apo Date: Wed, 23 May 2007 10:28:20 +0000 (+0000) Subject: Fix for Bug IPAL16044 X-Git-Tag: V4_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=048263021af8ecca421541223f9f65e5587e685f;p=modules%2Fvisu.git Fix for Bug IPAL16044 - IOLS. fatal error SIGSEGV on some presentations --- 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,