]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix bug 15990: IOLS. fatal error SIGSEGV on activate Post-Pro for this hdf.
authorjfa <jfa@opencascade.com>
Tue, 22 May 2007 07:06:49 +0000 (07:06 +0000)
committerjfa <jfa@opencascade.com>
Tue, 22 May 2007 07:06:49 +0000 (07:06 +0000)
src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc

index f2a227a974d8128fab4d93a58f7bfaae61707f0d..3428d68a6c5c28945893a49e745f44d31d799141 100644 (file)
@@ -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;
 }