]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NRI : Set correct name of MED component for import MED object.
authornri <nri@opencascade.com>
Thu, 17 Jul 2003 19:02:14 +0000 (19:02 +0000)
committernri <nri@opencascade.com>
Thu, 17 Jul 2003 19:02:14 +0000 (19:02 +0000)
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_Result_i.cc

index 1e8aa09d07f3babbc02ee4aa5f9834f856128355..c31b72141c8d69d4548cf302386b83f8ec4fabb2 100644 (file)
@@ -946,7 +946,7 @@ namespace VISU{
              Result_i* pResult = dynamic_cast<Result_i*>(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;
              }
            }
index f0a16be6886f7079876be3e31c8e476e13006e81..28fecf2bf97d577a360046f68358b3f2901ab798 100644 (file)
@@ -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 !!!");