From ee7c5d0f8375cab088032e90f98700a6ca09bb2d Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 16 Dec 2011 17:13:39 +0000 Subject: [PATCH] fix the previous integration --- src/SMESH_I/SMESH_2smeshpy.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 359fd4297..2437efbd3 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -203,13 +203,15 @@ SMESH_2smeshpy::ConvertScript(const TCollection_AsciiString& theScript, _pyGen::_pyGen(Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod, Resource_DataMapOfAsciiStringAsciiString& theObjectNames) - : _pyObject( new _pyCommand( TPythonDump::SMESHGenName(), 0 )), + : _pyObject( new _pyCommand( "", 0 )), myNbCommands( 0 ), myID2AccessorMethod( theEntry2AccessorMethod ), myObjectNames( theObjectNames ), myNbFilters( 0 ) { // make that GetID() to return TPythonDump::SMESHGenName() + GetCreationCmd()->Clear(); + GetCreationCmd()->GetString() = TPythonDump::SMESHGenName(); GetCreationCmd()->GetString() += "="; } @@ -841,6 +843,7 @@ Handle(_pyObject) _pyGen::FindObject( const _pyID& theObjID ) const bool _pyGen::IsDead(const _pyID& theObjID) const { + if ( theObjID.IsEmpty() ) return false; const bool hasStudyName = myObjectNames.IsBound( theObjID ); return !hasStudyName; } -- 2.39.2