Salome HOME
Restore support of med-2.1 in MEDWrapper
[modules/smesh.git] / src / DriverMED / DriverMED_Family.cxx
index f8e91f9561af5247e278f5a757e013c4ff97115b..0f0f5709f16081b703d189d197962b372de27705 100644 (file)
@@ -329,9 +329,9 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper,
   string aValue = aStr.str();
   // PAL19785,0019867 - med forbids whitespace to be the last char in the name
   int maxSize;
-//   if ( theWrapper->GetVersion() == MED::eV2_1 )
-//     maxSize = MED::GetNOMLength<MED::eV2_1>();
-//   else
+  if ( theWrapper->GetVersion() == MED::eV2_1 )
+    maxSize = MED::GetNOMLength<MED::eV2_1>();
+  else
     maxSize = MED::GetNOMLength<MED::eV2_2>();
   int lastCharPos = min( maxSize, (int) aValue.size() ) - 1;
   while ( isspace( aValue[ lastCharPos ] ))