From: ana Date: Wed, 15 Feb 2012 14:30:42 +0000 (+0000) Subject: Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge... X-Git-Tag: V6_5_0a1~130 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d4ed5201b234512f5a47588b9d5bf7af9ba1b92;p=modules%2Fsmesh.git Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue. --- diff --git a/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx b/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx index 4c591781a..ab65f0570 100644 --- a/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx @@ -741,7 +741,11 @@ void SMESHGUI_ExtrusionDlg::onTextChange (const QString& theNewText) bool validId = false; if ( id > 0 ) { if ( aMesh ) { - const SMDS_MeshElement * e = aMesh->FindElement( id ); + const SMDS_MeshElement * e; + if (SMDSType == SMDSAbs_Node) + e = aMesh->FindNode( id ); + else + e = aMesh->FindElement( id ); validId = ( e && e->GetType() == SMDSType ); } else { validId = ( myMesh->GetElementType( id, true ) == SMESHType );