]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the Bug IPAL20559 Error message is shown after loading of stored stady in... mergeto_V5_1_main_13Nov10
authorrnv <rnv@opencascade.com>
Thu, 28 Oct 2010 09:07:47 +0000 (09:07 +0000)
committerrnv <rnv@opencascade.com>
Thu, 28 Oct 2010 09:07:47 +0000 (09:07 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx
src/CONVERTOR/VISU_Structures_impl.cxx
src/CONVERTOR/VISU_Structures_impl.hxx

index 5b03e784ab5fdd7ecb3386c46761626dfcd7fea1..375e04f5297bff0abd789fb9d3612fe50ebfeb5f 100644 (file)
@@ -3034,11 +3034,13 @@ FillValForTime(MED::SharedPtr<TimeStampValueType> theTimeStampValue,
                VISU::PMEDValForTime theValForTime,
                VISU::PMEDField theField)
 {
+  if(theValForTime->myIsFilled) 
+       return;
   theField->myDataSize = 0;
   TInt aNbComp = theField->myNbComp;
 
   VISU::TGeom2SubProfile::const_iterator anIter = theGeom2SubProfile.begin();
-  for(; anIter != theGeom2SubProfile.end(); anIter++){
+  for(; anIter != theGeom2SubProfile.end(); anIter++) {
     VISU::EGeometry aEGeom = anIter->first;
     VISU::PMEDSubProfile aSubProfile(anIter->second);
 
@@ -3066,6 +3068,7 @@ FillValForTime(MED::SharedPtr<TimeStampValueType> theTimeStampValue,
       aVMeshValue.reset(aMeshValue);
     }
   }
+  theValForTime->myIsFilled = true;
 }
 
 //---------------------------------------------------------------
index a0c1012b66523b3498974573bcd694152465c256..0d8ebd9482781abb982bc813df6c0447cb6cbf01 100644 (file)
@@ -1516,7 +1516,8 @@ namespace VISU
   TValForTimeImpl
   ::TValForTimeImpl():
     myGaussPtsIDFilter(new TGaussPtsIDFilter()),
-    myUnstructuredGridIDMapper(new TUnstructuredGridIDMapperImpl())
+    myUnstructuredGridIDMapper(new TUnstructuredGridIDMapperImpl()),
+       myIsFilled(false)
   {}
 
   const PMeshValue&
index 11d7e8188e90892a0211fab0012e6dc1a8b7e877..a38f63709bd5e7c761534ee78de4fbe81bf958da 100644 (file)
@@ -869,6 +869,7 @@ namespace VISU
     PUnstructuredGridIDMapperImpl myUnstructuredGridIDMapper; //!< Keep VTK representation for ordinary mesh and data
     TGeom2Value myGeom2Value; //!< Keep value that is assigned to the mesh
     TGeom2NbGauss myGeom2NbGauss; //!< Keep number of Gauss Points
+    bool myIsFilled;              //!< Keep the status of the TValForTime (true - already filled, false - not filled);
    
     TValForTimeImpl();