* @file buttonContainerController.cxx
* @brief This contains the ButtonContainerController class implementation
* @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date 2011-05-24
+ * @date 2011-06-02
*/
#include "buttonContainerController.h"
// ----------------------------------------------------------------------------------
ButtonContainerController::~ButtonContainerController( )
{
- delete this->m_BCPanel;
}
// ----------------------------------------------------------------------------------
void
}//rof
}//rof
}//yrt
- catch ( std::exception& e )
+ catch ( const std::exception& e )
{
std::cerr << "ButtonContainerController::AddEvents( ) exception: "
<< e.what( ) << std::endl;
}//fi esle
this->m_BCPanel->FitSizer( );
}//yrt
- catch ( std::exception& e )
+ catch ( const std::exception& e )
{
std::cerr
<< "ButtonContainerController::ButtonExpEvent( wxCommandEvent& event ) exception: "
this->m_BCPanel->m_ButtonGroupList.begin( ); it
!= this->m_BCPanel->m_ButtonGroupList.end( ); ++it )
{
- ( *it )->GetButton( event.GetId( ) )->Execute( );
+ if ( ( *it )->GetButton( event.GetId( ) ) != NULL )
+ {
+ ( *it )->GetButton( event.GetId( ) )->Execute( );
+ }//fi
}//rof
}//yrt
- catch ( std::exception& e )
+ catch ( const std::exception& e )
{
std::cerr
<< "ButtonContainerController::ButtonEvent( wxCommandEvent& event ) exception: "