aVF->getToolBar()->show();
}
-// mkr : PAL8237 : synchronize many views of the same dataflow
+// mkr : PAL8237 : synchronize many views of the same dataflow (objects creation/deletion)
void SUPERVGUI_Main::onObjectCreatedDeleted()
{
if ( study ) {
SALOMEDS::SObject_var aTmpSO;// = aSO;
SALOMEDS_Study* aSStudy = dynamic_cast<SALOMEDS_Study*>( aStudy.get() );
if ( !aSStudy ) return false;
- aTmpSO = aDriver->PublishInStudy( aSStudy->GetStudy(), aTmpSO, anObject, "" );
+ try {
+ aTmpSO = aDriver->PublishInStudy( aSStudy->GetStudy(), aTmpSO, anObject, "" );
+ }
+ catch ( ... ) { // mkr : PAL8150
+ return false;
+ }
aBuilder->Addreference(aSO, _PTR(SObject)(new SALOMEDS_SObject( aTmpSO )) );
PublishOtherComponent = true;
}