From: vsr Date: Thu, 30 Jan 2014 12:25:34 +0000 (+0000) Subject: Correct implementation of GetImportFormatName() function to work properly for appropr... X-Git-Tag: V7_4_0a1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4385fae90980a30fc173e49d872001a050160a5c;p=modules%2Fgeom.git Correct implementation of GetImportFormatName() function to work properly for appropriate import formats --- 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("_"); } //=============================================================================