From: eap Date: Tue, 29 Jan 2008 15:40:06 +0000 (+0000) Subject: PAL18501 Bug in Netgen 1D2D3D assignement X-Git-Tag: V3_2_10~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=804fea7b7cc71043bb50712ce098cc68c11e8e9f;p=modules%2Fsmesh.git PAL18501 Bug in Netgen 1D2D3D assignement fix exception at algo deselection --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index ca82f9dd3..40944dc07 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -1761,11 +1761,9 @@ bool SMESHGUI_MeshOp::editMeshOrSubMesh( QString& theMess ) if ( isAccessibleDim( dim ) && myObjHyps[ dim ][ Algo ].count() > 0 ) { SMESH::SMESH_Hypothesis_var anOldAlgo = myObjHyps[ dim ][ Algo ].first().first; - CORBA::String_var anOldName = anOldAlgo->GetName(); SMESH::SMESH_Hypothesis_var anAlgoVar = getAlgo( dim ); - CORBA::String_var anAlgoName = anAlgoVar->GetName(); if ( anAlgoVar->_is_nil() || // no new algo selected or - strcmp(anOldName.in(), anAlgoName.in()) ) // algo change + strcmp(anOldAlgo->GetName(), anAlgoVar->GetName()) ) // algo change { // remove old algorithm SMESH::RemoveHypothesisOrAlgorithmOnMesh ( pObj, myObjHyps[ dim ][ Algo ].first().first );