IPAL 18509

This commit is contained in:
dmv 2008-01-11 07:33:43 +00:00
parent 60d5d81fba
commit ec6c2c5465

View File

@ -1063,7 +1063,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather( GEOM::GEOM_Object_ptr
//================================================================ //================================================================
void GEOMBase_Helper::addSubshapesToStudy() void GEOMBase_Helper::addSubshapesToStudy()
{ {
//Impemented in Dialogs, called from Accept method //Impemented in Dialogs, called from Accept method in Helper
} }
//================================================================ //================================================================
@ -1084,12 +1084,14 @@ void GEOMBase_Helper::addSubshapesToFather( QMap<QString, GEOM::GEOM_Object_var>
{ {
if ( !anOp->_is_nil() ) { if ( !anOp->_is_nil() ) {
GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() ); GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() );
GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() ); if ( !aFatherObj->_is_nil() ) {
GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() );
//Add Object to study if its not exist //Add Object to study if its not exist
if ( aFindedObject == GEOM::GEOM_Object::_nil() ) if ( aFindedObject == GEOM::GEOM_Object::_nil() )
GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy), GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy),
it.data(), it.key(), aFatherObj ); it.data(), it.key(), aFatherObj );
}
} }
else { else {
//cout << " anOperations is NULL! " << endl; //cout << " anOperations is NULL! " << endl;