Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bos#32896
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_MeshOp.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_MeshOp.cxx
b/src/SMESHGUI/SMESHGUI_MeshOp.cxx
index a52234cd06dfed3885337a10c9b48b1038ace9de..96552b53077fd1689362e19dccf3552d9b1cb4a9 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_MeshOp.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MeshOp.cxx
@@
-37,6
+37,7
@@
#include "SMESH_NumberFilter.hxx"
#include "SMESH_TypeDefs.hxx"
#include "SMESH_TypeFilter.hxx"
#include "SMESH_NumberFilter.hxx"
#include "SMESH_TypeDefs.hxx"
#include "SMESH_TypeFilter.hxx"
+#include "SMESH_Gen_i.hxx"
#include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
#include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
@@
-2038,7
+2039,10
@@
bool SMESHGUI_MeshOp::createMesh( QString& theMess, QStringList& theEntryList )
elemType = SMESH::NODE;
CORBA::String_var name = geomGroups[ iG ]->GetName();
elemType = SMESH::NODE;
CORBA::String_var name = geomGroups[ iG ]->GetName();
- meshGroup = aMesh->CreateGroupFromGEOM( elemType, name, geomGroups[ iG ]);
+
+ SALOMEDS::SObject_wrap groupSO = SMESH_Gen_i::GetSMESHGen()->ObjectToSObject( geomGroups[iG] );
+ if (!groupSO->_is_nil())
+ meshGroup = aMesh->CreateGroupFromGEOM( elemType, name, geomGroups[ iG ]);
// if ( elemType != SMESH::NODE )
// meshGroup = aMesh->CreateGroupFromGEOM( SMESH::NODE, name, geomGroups[ iG ]);
}
// if ( elemType != SMESH::NODE )
// meshGroup = aMesh->CreateGroupFromGEOM( SMESH::NODE, name, geomGroups[ iG ]);
}