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:
cb1e086
)
editMeshOrSubMesh method fixed for correct work with sub-meshes
author
sln
<sln@opencascade.com>
Wed, 24 Aug 2005 14:15:10 +0000
(14:15 +0000)
committer
sln
<sln@opencascade.com>
Wed, 24 Aug 2005 14:15:10 +0000
(14:15 +0000)
src/SMESHGUI/SMESHGUI_MeshOp.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_MeshOp.cxx
b/src/SMESHGUI/SMESHGUI_MeshOp.cxx
index ac30ec89be0b3fa0fe546db735d0ebf5e299428c..4882a7207a469a6bfd751588328a870a1f7a4802 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_MeshOp.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MeshOp.cxx
@@
-945,13
+945,13
@@
bool SMESHGUI_MeshOp::editMeshOrSubMesh( QString& theMess )
// assign new hypotheses
if ( aNewHypIndex != -1 )
{
// assign new hypotheses
if ( aNewHypIndex != -1 )
{
- if ( myIsMesh )
- {
- SMESH::SMESH_Mesh_var aVar =
+ SMESH::SMESH_Mesh_var aMeshVar =
SMESH::SMESH_Mesh::_narrow( _CAST(SObject,pObj)->GetObject() );
SMESH::SMESH_Mesh::_narrow( _CAST(SObject,pObj)->GetObject() );
- if ( !aVar->_is_nil() )
- SMESH::AddHypothesisOnMesh(
- aVar, myExistingHyps[ dim ][ hypType ][ aNewHypIndex ] );
+ bool isMesh = !aMeshVar->_is_nil();
+ if ( isMesh )
+ {
+ SMESH::AddHypothesisOnMesh(
+ aMeshVar, myExistingHyps[ dim ][ hypType ][ aNewHypIndex ] );
}
else
{
}
else
{