From aaf1157f745ed8a6f878b1d6f5dbcb9c47c3e120 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 28 Oct 2010 09:07:47 +0000 Subject: [PATCH] =?utf8?q?Fix=20for=20the=20Bug=20IPAL20559=20Error=20mess?= =?utf8?q?age=20is=20shown=20after=20loading=20of=20stored=20stady=20in=20?= =?utf8?q?case=20=C2=93Gauss=20Points=C2=94=20presentation=20was=20created?= =?utf8?q?=20in=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/CONVERTOR/VISU_MedConvertor.cxx | 5 ++++- src/CONVERTOR/VISU_Structures_impl.cxx | 3 ++- src/CONVERTOR/VISU_Structures_impl.hxx | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) 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(); -- 2.39.2