From: jfa Date: Wed, 20 Oct 2010 06:31:47 +0000 (+0000) Subject: Small improvement of names reading: skip names like 'Open CASCADE STEP translator... X-Git-Tag: V5_1_5rc1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0edb21dc296d8ae738715059e6b0ec4159e3e507;p=modules%2Fgeom.git Small improvement of names reading: skip names like 'Open CASCADE STEP translator...'. --- diff --git a/src/STEPImport/STEPImport.cxx b/src/STEPImport/STEPImport.cxx index 0ba785429..1983470bc 100644 --- a/src/STEPImport/STEPImport.cxx +++ b/src/STEPImport/STEPImport.cxx @@ -172,6 +172,13 @@ extern "C" Handle(TCollection_HAsciiString) aName = Prod->Name(); TCollection_ExtendedString aNameExt (aName->ToCString()); + // special check to pass names like "Open CASCADE STEP translator 6.3 1" + TCollection_AsciiString aSkipName ("Open CASCADE STEP translator"); + if (aName->Length() >= aSkipName.Length()) { + if (aName->String().SubString(1, aSkipName.Length()).IsEqual(aSkipName)) + continue; + } + // find target shape Handle(Transfer_Binder) binder = TP->Find(enti); if (binder.IsNull()) continue;