From 840b3bffc5cc8751ee4525f9e93020af942f2c41 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 4 May 2011 16:58:11 +0000 Subject: [PATCH] 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 ); --- src/GEOM_I/GEOM_DumpPython.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2