]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge...
authorana <ana@opencascade.com>
Wed, 15 Feb 2012 14:30:42 +0000 (14:30 +0000)
committerana <ana@opencascade.com>
Wed, 15 Feb 2012 14:30:42 +0000 (14:30 +0000)
src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx

index 4c591781a7f494470a0b9878fd6e6980dea21e54..ab65f0570410e1cb813e8d95481cd01f566af8b9 100644 (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 );