]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Exception in python dump of SMESH_TEST/Grids/smesh/bugs/M2
authoreap <eap@opencascade.com>
Wed, 4 May 2011 16:58:11 +0000 (16:58 +0000)
committereap <eap@opencascade.com>
Wed, 4 May 2011 16:58:11 +0000 (16:58 +0000)
+        if ( (*it)._studyEntry.Length() < 7 ) continue;
  std::string tail( (*it)._studyEntry.ToCString(), 6, (*it)._studyEntry.Length()-1 );

src/GEOM_I/GEOM_DumpPython.cc

index b1d2525994377be1d659d529495b744dbf71eff9..cc111d0f9b8789995af760c2cac83324c21a34a5 100644 (file)
@@ -141,7 +141,8 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy,
       std::vector<TObjectData>::iterator it = objectDataVec.begin();
       for( ;it != objectDataVec.end(); it++ ) {
       
-       //1. Encode entry 
+       //1. Encode entry
+        if ( (*it)._studyEntry.Length() < 7 ) continue;
        std::string tail( (*it)._studyEntry.ToCString(), 6, (*it)._studyEntry.Length()-1 );
        std::string newEntry(ComponentDataType());
        newEntry+=("_"+tail);