]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for new imports : no restriction on the length of the FORMAT string (ILMAB project)
authorngo <ngo@opencascade.com>
Wed, 28 Nov 2012 15:00:04 +0000 (15:00 +0000)
committerngo <ngo@opencascade.com>
Wed, 28 Nov 2012 15:00:04 +0000 (15:00 +0000)
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx

index 6aca179a16df948dceb84bef357fbb02f605fd3b..d806a4a2d38c418595910888f06ebd0e7a57102b 100644 (file)
@@ -218,7 +218,7 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::Import
   if (aFunction->GetDriverGUID() != GEOMImpl_ImportDriver::GetID()) return result;
 
   Handle(TCollection_HAsciiString) aHLibName;
-  if (!IsSupported(Standard_True, theFormatName.SubString(1,4), aHLibName)) {
+  if (!IsSupported(Standard_True, theFormatName/*.SubString(1,4)*/, aHLibName)) {
     return result;
   }
   TCollection_AsciiString aLibName = aHLibName->String();
@@ -289,7 +289,7 @@ TCollection_AsciiString GEOMImpl_IInsertOperations::ReadValue
   if (theFileName.IsEmpty() || theFormatName.IsEmpty() || theParameterName.IsEmpty()) return aValue;
 
   Handle(TCollection_HAsciiString) aHLibName;
-  if (!IsSupported(Standard_True, theFormatName.SubString(1,4), aHLibName)) {
+  if (!IsSupported(Standard_True, theFormatName/*.SubString(1,4)*/, aHLibName)) {
     return aValue;
   }
   TCollection_AsciiString aLibName = aHLibName->String();