Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue.

This commit is contained in:
ana 2012-02-15 14:30:42 +00:00
parent af3910d143
commit 5d4ed5201b

View File

@ -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 );