From: dmv Date: Mon, 19 May 2008 07:31:14 +0000 (+0000) Subject: NPAL 19727 EDf 715 SMESH: Import of unv file adds a space character at the end of... X-Git-Tag: V4_1_3rc1~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4fbfc9aa30972088bcbad406d4c9a1f6abd5a23b;p=modules%2Fsmesh.git NPAL 19727 EDf 715 SMESH: Import of unv file adds a space character at the end of group names --- diff --git a/src/DriverUNV/UNV2417_Structure.cxx b/src/DriverUNV/UNV2417_Structure.cxx index a9da97d62..90c4e4514 100644 --- a/src/DriverUNV/UNV2417_Structure.cxx +++ b/src/DriverUNV/UNV2417_Structure.cxx @@ -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'); - + + //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 aElId; int aNum;