Correct implementation of GetImportFormatName() function to work properly for appropriate import formats

This commit is contained in:
vsr 2014-01-30 12:25:34 +00:00
parent 52e50564f3
commit 4385fae909

View File

@ -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("_");
}
//=============================================================================