Salome HOME
PAL18501 Bug in Netgen 1D2D3D assignement
authoreap <eap@opencascade.com>
Tue, 29 Jan 2008 15:40:06 +0000 (15:40 +0000)
committereap <eap@opencascade.com>
Tue, 29 Jan 2008 15:40:06 +0000 (15:40 +0000)
    fix exception at algo deselection

src/SMESHGUI/SMESHGUI_MeshOp.cxx

index ca82f9dd3207a601558ebc0d1c24e0857233098a..40944dc0712315c1629ced5f506d72372c22c0cb 100644 (file)
@@ -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 );