From: eap Date: Wed, 4 May 2011 16:58:11 +0000 (+0000) Subject: Exception in python dump of SMESH_TEST/Grids/smesh/bugs/M2 X-Git-Tag: V6_3_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=840b3bffc5cc8751ee4525f9e93020af942f2c41;p=modules%2Fgeom.git Exception in python dump of SMESH_TEST/Grids/smesh/bugs/M2 + if ( (*it)._studyEntry.Length() < 7 ) continue; std::string tail( (*it)._studyEntry.ToCString(), 6, (*it)._studyEntry.Length()-1 ); --- diff --git a/src/GEOM_I/GEOM_DumpPython.cc b/src/GEOM_I/GEOM_DumpPython.cc index b1d252599..cc111d0f9 100644 --- a/src/GEOM_I/GEOM_DumpPython.cc +++ b/src/GEOM_I/GEOM_DumpPython.cc @@ -141,7 +141,8 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy, std::vector::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);