]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonGroup.cxx
New cleaner neater option of ShowNPoints added :P JGRR
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonGroup.cxx
index 0738e60e6ff1dd6c30f597875c09bbd191780cd9..dd14a931abfc6d82c9c24b64834cf3c64753ec41 100644 (file)
@@ -12,28 +12,31 @@ namespace creaButtonContainer
        namespace view
        {
                // ----------------------------------------------------------------------------------
-               ButtonGroup::ButtonGroup( wxStaticText* groupName,
-                   ButtonContainer cartoButtons )
+               ButtonGroup::ButtonGroup( wxStaticText* groupName, ButtonContainer cartoButtons )
                {
                        this->m_GroupName = groupName;
                        this->m_Buttons = cartoButtons;
                }
+               
                // ----------------------------------------------------------------------------------
                ButtonGroup::~ButtonGroup( )
                {
                }
+               
                // ----------------------------------------------------------------------------------
                ButtonGroup::ButtonContainer
                ButtonGroup::GetButtonContainer( )
                {
                        return ( this->m_Buttons );
                }
+               
                // ----------------------------------------------------------------------------------
                wxStaticText*
                ButtonGroup::GetGroupName( )
                {
                        return ( this->m_GroupName );
                }
+               
                // ----------------------------------------------------------------------------------
                ButtonGroup::IdButtonContainer
                ButtonGroup::GetButtonIdContainer( )
@@ -54,19 +57,21 @@ namespace creaButtonContainer
                        }//hctac
                        return ( idContainer );
                }
+               
                // ----------------------------------------------------------------------------------
                Button*
                ButtonGroup::GetButton( long id )
                {
                        try
                        {
-                               return ( this->m_Buttons[ id ] );
+                               //return ( this->m_Buttons[ id ] ); // JPR
                        }//yrt
                        catch ( std::exception& e )
                        {
                                std::cerr << "ButtonGroup::GetButton( long id )" << "exception: "
                                    << e.what( ) << std::endl;
                        }//hctac
+                       return ( this->m_Buttons[ id ] );// JPR
                }
        // ----------------------------------------------------------------------------------
        }//ecapseman