From: apo Date: Mon, 19 Nov 2007 12:27:41 +0000 (+0000) Subject: Because of since now, any part of a destributed MED file can have its own mesh name... X-Git-Tag: mergeto_BR_Dev_For_4_0_07-Dec-07~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f219e81f3728b1b82c2936bd1366c61c8adec7e2;p=modules%2Fvisu.git Because of since now, any part of a destributed MED file can have its own mesh name, there appear necessity to provide a way to ignore the mesh name or to force it as an external parameter. So, the mesh name of the given parts of destributed MED file is ignored. --- diff --git a/src/VISU_I/VISU_MultiResult_i.cc b/src/VISU_I/VISU_MultiResult_i.cc index ce2d5d78..f99d8ffd 100644 --- a/src/VISU_I/VISU_MultiResult_i.cc +++ b/src/VISU_I/VISU_MultiResult_i.cc @@ -284,6 +284,7 @@ namespace VISU if(!theIsBuild || *theIsDone) return; + INITMSG(MYDEBUG, "BuildParts\n"); TTimerLog aTimerLog(MYTIMEDEBUG, "BuildParts"); TResultManager aResultManager(theResult); TTransactionManager aTransactionManager(theStudy); @@ -295,6 +296,7 @@ namespace VISU const VISU::PMesh& aMesh = aMeshMapIter->second; MultiResult_i::TPartNames aPartNames = aMultiprObj.getParts(); + BEGMSG(MYDEBUG, "aPartNames.size() = "<GetMeshMap(); - //VISU::TMeshMap::const_iterator aMeshIter = aMeshMap.find(theMeshName); + //VISU::TMeshMap::const_iterator aMeshIter = aMeshMap.find(theMeshName); // To ignore theMeshName input parameter VISU::TMeshMap::const_iterator aMeshIter = aMeshMap.begin(); if(aMeshIter == aMeshMap.end()) return; @@ -937,6 +942,9 @@ VISU::MultiResult_i else aFatherEntry = Result_i::GetEntry(aRestoringMap); + if ( aFatherEntry == "" ) + return; + std::string anIconName = "ICON_MULTIPR_VIEW_HIDE"; if(theResolution == VISU::Result::FULL) anIconName = "ICON_MULTIPR_VIEW_FULL";