]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct implementation of GetImportFormatName() function to work properly for appropr...
authorvsr <vsr@opencascade.com>
Thu, 30 Jan 2014 12:25:34 +0000 (12:25 +0000)
committervsr <vsr@opencascade.com>
Thu, 30 Jan 2014 12:25:34 +0000 (12:25 +0000)
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx

index e48760f5654cf809a7cffcdac5e88105339c7f9b..4c9a48f12fd27ad5bd7dfb4a819f902019728561 100644 (file)
 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("_");
 }
 
 //=============================================================================