Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00eec36
)
NPAL 19727 EDf 715 SMESH: Import of unv file adds a space character at the end of...
author
dmv
<dmv@opencascade.com>
Mon, 19 May 2008 07:31:14 +0000
(07:31 +0000)
committer
dmv
<dmv@opencascade.com>
Mon, 19 May 2008 07:31:14 +0000
(07:31 +0000)
src/DriverUNV/UNV2417_Structure.cxx
patch
|
blob
|
history
diff --git
a/src/DriverUNV/UNV2417_Structure.cxx
b/src/DriverUNV/UNV2417_Structure.cxx
index a9da97d62fc8c3328de6e857772632694960d5b0..90c4e45146f4657fed39411f2fd8c8e239b05308 100644
(file)
--- 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;