From 62f6ab7368c092da45b1a33416de9cd29c04a8ec Mon Sep 17 00:00:00 2001 From: ngo Date: Wed, 28 Nov 2012 15:00:04 +0000 Subject: [PATCH] Fix for new imports : no restriction on the length of the FORMAT string (ILMAB project) --- src/GEOMImpl/GEOMImpl_IInsertOperations.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();