]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL16044
authorapo <apo@opencascade.com>
Wed, 23 May 2007 10:28:20 +0000 (10:28 +0000)
committerapo <apo@opencascade.com>
Wed, 23 May 2007 10:28:20 +0000 (10:28 +0000)
 - IOLS. fatal error SIGSEGV on some presentations

src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc

index bab79a4b35bd7b17f775eff72961f911b976c90b..3046fbcde707cff31f319e742a8913685616e54e 100644 (file)
@@ -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,