TCollection_AsciiString anEntry;

...
-        anEntry = aSObj->GetID();
+        CORBA::String_var anEntry = aSObj->GetID();
This commit is contained in:
eap 2009-04-21 10:45:40 +00:00
parent fb9eed7fa3
commit 728f9a0bad

View File

@ -785,9 +785,9 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
// mesh auto color // mesh auto color
if( !CORBA::is_nil(aMesh) && aMesh->GetAutoColor() ) if( !CORBA::is_nil(aMesh) && aMesh->GetAutoColor() )
{ {
anEntry = aSObj->GetID(); CORBA::String_var anEntry = aSObj->GetID();
anUpdatedScript += anUpdatedScript +=
SMESH_Comment("\n\t") << theObjectNames(anEntry) << ".SetAutoColor(1)"; SMESH_Comment("\n\t") << theObjectNames(anEntry.inout()) << ".SetAutoColor(1)";
} }
SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SObjectToObject(aSObj)); SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SObjectToObject(aSObj));
if( !CORBA::is_nil(aGroup) ) if( !CORBA::is_nil(aGroup) )
@ -795,9 +795,9 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
SALOMEDS::Color aColor = aGroup->GetColor(); SALOMEDS::Color aColor = aGroup->GetColor();
if ( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 ) if ( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 )
{ {
anEntry = aSObj->GetID(); CORBA::String_var anEntry = aSObj->GetID();
anUpdatedScript += anUpdatedScript += SMESH_Comment("\n\t")
SMESH_Comment("\n\t") << theObjectNames(anEntry) << ".SetColor(SALOMEDS.Color(" << theObjectNames(anEntry.inout()) << ".SetColor(SALOMEDS.Color("
<< aColor.R <<", "<< aColor.G <<", "<< aColor.B <<" ))"; << aColor.R <<", "<< aColor.G <<", "<< aColor.B <<" ))";
} }
} }