mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 11:40:33 +05:00
Correct implementation of GetImportFormatName() function to work properly for appropriate import formats
This commit is contained in:
parent
52e50564f3
commit
4385fae909
@ -90,13 +90,7 @@
|
|||||||
static TCollection_AsciiString GetImportFormatName
|
static TCollection_AsciiString GetImportFormatName
|
||||||
(const TCollection_AsciiString& theFormatName)
|
(const TCollection_AsciiString& theFormatName)
|
||||||
{
|
{
|
||||||
Standard_Integer aLastInd = 4;
|
return theFormatName.Token("_");
|
||||||
|
|
||||||
if (theFormatName.Search("STL") == 1) {
|
|
||||||
aLastInd = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
return theFormatName.SubString(1, aLastInd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user