From: nri Date: Thu, 17 Jul 2003 19:02:14 +0000 (+0000) Subject: NRI : Set correct name of MED component for import MED object. X-Git-Tag: V_02092003~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34036fe557998a630a8fb146b00425e97b512b42;p=modules%2Fvisu.git NRI : Set correct name of MED component for import MED object. --- diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index 1e8aa09d..c31b7214 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -946,7 +946,7 @@ namespace VISU{ Result_i* pResult = dynamic_cast(GetServant(aResultObj)); if(pResult != NULL){ if(abs(pResult->GetSourceId()) > Result_i::eFile) - if((pResult->GetFileInfo()).filePath() == "Med") return false; + if((pResult->GetFileInfo()).filePath() == "MED") return false; return true; } } diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index f0a16be6..28fecf2b 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -295,7 +295,7 @@ VISU::Storable* VISU::Result_i::Create(SALOME_MED::FIELD_ptr theField){ mySourceId = eComponent; myInput = CreateMEDFieldConvertor(theField); if(myInput == NULL) return NULL; - string aCompDataType = "Med"; + string aCompDataType = "MED"; myFileInfo.setFile(aCompDataType.c_str()); myName = (const char*)(::GenerateName("aResult")); VISU::Storable* aStorable = Build(); @@ -332,7 +332,7 @@ VISU::Storable* VISU::Result_i::Restore(SALOMEDS::SObject_ptr theSObject, SALOMEDS::StudyBuilder_var aStudyBuilder = myStudyDocument->NewBuilder(); SALOMEDS::Driver_var aDriver = SALOMEDS::Driver::_narrow(aEngComp); aStudyBuilder->LoadWith(aCompRefSObj,aDriver); - if(strcmp(aDataType,"Med") == 0){ + if(strcmp(aDataType,"MED") == 0){ myInput = CreateMEDConvertor(aTargetRefSObj); }else throw std::runtime_error("GetInput - There is no convertor for the aDataType !!!");