From: ngo Date: Wed, 28 Nov 2012 15:00:04 +0000 (+0000) Subject: Fix for new imports : no restriction on the length of the FORMAT string (ILMAB project) X-Git-Tag: V7_1_0_pre~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=62f6ab7368c092da45b1a33416de9cd29c04a8ec;p=modules%2Fgeom.git Fix for new imports : no restriction on the length of the FORMAT string (ILMAB project) --- diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index 6aca179a1..d806a4a2d 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -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();