Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af3910d
)
Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge...
author
ana
<ana@opencascade.com>
Wed, 15 Feb 2012 14:30:42 +0000
(14:30 +0000)
committer
ana
<ana@opencascade.com>
Wed, 15 Feb 2012 14:30:42 +0000
(14:30 +0000)
src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx
b/src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx
index 4c591781a7f494470a0b9878fd6e6980dea21e54..ab65f0570410e1cb813e8d95481cd01f566af8b9 100644
(file)
--- 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 );