mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 09:40:34 +05:00
Fix for the '52701: SIGSEGV in Mesh creation dialog box after activating Viscous Layers hypothesis' issue.
This commit is contained in:
parent
929ce6ba39
commit
299e2326cd
@ -551,9 +551,17 @@ void SMESHGUI_MeshOp::selectionDone()
|
|||||||
for ( ; aSubShapesIter != aGEOMs.end(); aSubShapesIter++, iSubSh++) {
|
for ( ; aSubShapesIter != aGEOMs.end(); aSubShapesIter++, iSubSh++) {
|
||||||
QString aSubGeomEntry = (*aSubShapesIter);
|
QString aSubGeomEntry = (*aSubShapesIter);
|
||||||
_PTR(SObject) pSubGeom = studyDS()->FindObjectID(aSubGeomEntry.toLatin1().data());
|
_PTR(SObject) pSubGeom = studyDS()->FindObjectID(aSubGeomEntry.toLatin1().data());
|
||||||
GEOM::GEOM_Object_var aSubGeomVar =
|
|
||||||
GEOM::GEOM_Object::_narrow(_CAST(SObject,pSubGeom)->GetObject());
|
if( pSubGeom ) {
|
||||||
aSeq[iSubSh] = aSubGeomVar;
|
SALOMEDS_SObject* sobj = _CAST(SObject,pSubGeom);
|
||||||
|
if( sobj ) {
|
||||||
|
GEOM::GEOM_Object_var aSubGeomVar =
|
||||||
|
GEOM::GEOM_Object::_narrow(sobj->GetObject());
|
||||||
|
if( !aSubGeomVar->_is_nil() ){
|
||||||
|
aSeq[iSubSh] = aSubGeomVar;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// get geometry by selected sub-mesh
|
// get geometry by selected sub-mesh
|
||||||
|
@ -134,6 +134,8 @@ StdMeshersGUI_SubShapeSelectorWdg::~StdMeshersGUI_SubShapeSelectorWdg()
|
|||||||
mySelectionMgr->removeFilter( myFilter );
|
mySelectionMgr->removeFilter( myFilter );
|
||||||
delete myFilter; myFilter=0;
|
delete myFilter; myFilter=0;
|
||||||
|
|
||||||
|
mySelectionMgr->clearSelected();
|
||||||
|
|
||||||
SUIT_SelectionFilter* filter;
|
SUIT_SelectionFilter* filter;
|
||||||
foreach( filter, myGeomFilters )
|
foreach( filter, myGeomFilters )
|
||||||
delete filter;
|
delete filter;
|
||||||
|
Loading…
Reference in New Issue
Block a user