From 4385fae90980a30fc173e49d872001a050160a5c Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 30 Jan 2014 12:25:34 +0000 Subject: [PATCH] Correct implementation of GetImportFormatName() function to work properly for appropriate import formats --- src/GEOMImpl/GEOMImpl_IInsertOperations.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index e48760f56..4c9a48f12 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -90,13 +90,7 @@ static TCollection_AsciiString GetImportFormatName (const TCollection_AsciiString& theFormatName) { - Standard_Integer aLastInd = 4; - - if (theFormatName.Search("STL") == 1) { - aLastInd = 3; - } - - return theFormatName.SubString(1, aLastInd); + return theFormatName.Token("_"); } //============================================================================= -- 2.39.2