mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-15 17:31:26 +05:00
Fix assertion message during reading of pattern file on Win32 stations
This commit is contained in:
parent
bdd25d855c
commit
7a3868cfc4
@ -109,7 +109,8 @@ CORBA::Boolean SMESH_Pattern_i::LoadFromFile(const char* theFileContents)
|
||||
// remove some gabage from the end
|
||||
TCollection_AsciiString patternDescription = (char*) theFileContents;
|
||||
int pos = patternDescription.Length();
|
||||
while (! isdigit( patternDescription.Value( pos )))
|
||||
char test = patternDescription.Value( pos );
|
||||
while (! isdigit( (unsigned char)patternDescription.Value( pos )))
|
||||
pos--;
|
||||
if ( pos != patternDescription.Length() ) {
|
||||
patternDescription.Trunc( pos );
|
||||
|
Loading…
x
Reference in New Issue
Block a user