X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_DumpPython.cxx;h=e67e4a3555748b0c20540e5fffdacc171950e08b;hb=c645e10df038fc2e0542a9451cf6e968fb507594;hp=feb6602bef0426aab8cd23409bb2271494439268;hpb=2b1b345532980e0c2dd2d69053e193cfbf62f154;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index feb6602be..e67e4a355 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -785,9 +785,9 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl // mesh auto color if( !CORBA::is_nil(aMesh) && aMesh->GetAutoColor() ) { - anEntry = aSObj->GetID(); + CORBA::String_var anEntry = aSObj->GetID(); 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)); if( !CORBA::is_nil(aGroup) ) @@ -795,10 +795,10 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl SALOMEDS::Color aColor = aGroup->GetColor(); if ( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 ) { - anEntry = aSObj->GetID(); - anUpdatedScript += - SMESH_Comment("\n\t") << theObjectNames(anEntry) << ".SetColor(SALOMEDS.Color(" - << aColor.R <<", "<< aColor.G <<", "<< aColor.B <<" ))"; + CORBA::String_var anEntry = aSObj->GetID(); + anUpdatedScript += SMESH_Comment("\n\t") + << theObjectNames(anEntry.inout()) << ".SetColor(SALOMEDS.Color(" + << aColor.R <<", "<< aColor.G <<", "<< aColor.B <<" ))"; } } }