mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 07:04:17 +05:00
NPAL 19727 EDf 715 SMESH: Import of unv file adds a space character at the end of group names
This commit is contained in:
parent
00eec36b49
commit
4fbfc9aa30
@ -92,7 +92,15 @@ void UNV2417::ReadGroup(const std::string& myGroupLabel, std::ifstream& in_strea
|
|||||||
|
|
||||||
std::getline(in_stream, aRec.GroupName, '\n'); // Finalise previous reading
|
std::getline(in_stream, aRec.GroupName, '\n'); // Finalise previous reading
|
||||||
std::getline(in_stream, aRec.GroupName, '\n');
|
std::getline(in_stream, aRec.GroupName, '\n');
|
||||||
|
|
||||||
|
//Erase special char '\r' if needs
|
||||||
|
std::string aName = aRec.GroupName;
|
||||||
|
int i = aName.find( "\r" );
|
||||||
|
if (i) {
|
||||||
|
aName.erase (i, 2);
|
||||||
|
aRec.GroupName = aName;
|
||||||
|
}
|
||||||
|
|
||||||
int aElType;
|
int aElType;
|
||||||
int aElId;
|
int aElId;
|
||||||
int aNum;
|
int aNum;
|
||||||
|
Loading…
Reference in New Issue
Block a user