mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-25 06:22:04 +05:00
PAL10867: noexcepthandler option in GUI not working. Disable signals catching.
This commit is contained in:
parent
70cba03a1c
commit
61fb376894
@ -68,6 +68,10 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr orb,
|
||||
|
||||
_impl = new ::GEOMImpl_Gen;
|
||||
|
||||
//PAL10867: disable signals catching with "noexcepthandler" option
|
||||
char* envNoCatchSignals = getenv("NOT_INTERCEPT_SIGNALS");
|
||||
if (!envNoCatchSignals || !atoi(envNoCatchSignals))
|
||||
{
|
||||
//work around PAL12004, PAL12628
|
||||
//OSD::SetSignal( true );
|
||||
bool raiseFPE;
|
||||
@ -81,6 +85,7 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr orb,
|
||||
#endif
|
||||
OSD::SetSignal( raiseFPE );
|
||||
}
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
// function : ~GEOM_Gen_i()
|
||||
@ -463,6 +468,9 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PasteInto(const SALOMEDS::TMPFile& theStream,
|
||||
TDF_Tool::Entry(anObj->GetEntry(), anEntry);
|
||||
GEOM::GEOM_Object_var obj = GetObject(anObj->GetDocID(), anEntry.ToCString());
|
||||
|
||||
//Set the study entry of the published GEOM_Object
|
||||
obj->SetStudyEntry(aNewSO->GetID());
|
||||
|
||||
// Add IORAttribute to the Study and set IOR of the created GEOM_Object to it
|
||||
SALOMEDS::GenericAttribute_var anAttr = aStudyBuilder->FindOrCreateAttribute(aNewSO, "AttributeIOR");
|
||||
SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user