From 5d4ed5201b234512f5a47588b9d5bf7af9ba1b92 Mon Sep 17 00:00:00 2001 From: ana Date: Wed, 15 Feb 2012 14:30:42 +0000 Subject: [PATCH] Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue. --- src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.2