mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-15 22:11:26 +05:00
MPV: Fix for crash if there is no Geometrical component created in the study
This commit is contained in:
parent
53a40b72e7
commit
3331817489
@ -2630,6 +2630,8 @@ Engines::ListOfData* GEOM_Gen_i::getModifiedData(CORBA::Long studyId)
|
|||||||
SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow( aSMObject );
|
SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow( aSMObject );
|
||||||
SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID( studyId );
|
SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID( studyId );
|
||||||
SALOMEDS::SComponent_var aComponent = aStudy->FindComponent("GEOM");
|
SALOMEDS::SComponent_var aComponent = aStudy->FindComponent("GEOM");
|
||||||
|
if (CORBA::is_nil(aComponent))
|
||||||
|
return aResult._retn();
|
||||||
SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator(aComponent); // check only published shapes
|
SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator(aComponent); // check only published shapes
|
||||||
TopoDS_Compound aResultComp;
|
TopoDS_Compound aResultComp;
|
||||||
BRep_Builder aBB;
|
BRep_Builder aBB;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user