From: rnv Date: Thu, 28 Oct 2010 09:07:47 +0000 (+0000) Subject: Fix for the Bug IPAL20559 Error message is shown after loading of stored stady in... X-Git-Tag: mergeto_V5_1_main_13Nov10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aaf1157f745ed8a6f878b1d6f5dbcb9c47c3e120;p=modules%2Fvisu.git Fix for the Bug IPAL20559 Error message is shown after loading of stored stady in case “Gauss Points” presentation was created in it. --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 5b03e784..375e04f5 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -3034,11 +3034,13 @@ FillValForTime(MED::SharedPtr 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 theTimeStampValue, aVMeshValue.reset(aMeshValue); } } + theValForTime->myIsFilled = true; } //--------------------------------------------------------------- diff --git a/src/CONVERTOR/VISU_Structures_impl.cxx b/src/CONVERTOR/VISU_Structures_impl.cxx index a0c1012b..0d8ebd94 100644 --- a/src/CONVERTOR/VISU_Structures_impl.cxx +++ b/src/CONVERTOR/VISU_Structures_impl.cxx @@ -1516,7 +1516,8 @@ namespace VISU TValForTimeImpl ::TValForTimeImpl(): myGaussPtsIDFilter(new TGaussPtsIDFilter()), - myUnstructuredGridIDMapper(new TUnstructuredGridIDMapperImpl()) + myUnstructuredGridIDMapper(new TUnstructuredGridIDMapperImpl()), + myIsFilled(false) {} const PMeshValue& diff --git a/src/CONVERTOR/VISU_Structures_impl.hxx b/src/CONVERTOR/VISU_Structures_impl.hxx index 11d7e818..a38f6370 100644 --- a/src/CONVERTOR/VISU_Structures_impl.hxx +++ b/src/CONVERTOR/VISU_Structures_impl.hxx @@ -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();