]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/creaPanelButtonContainer.cxx
DFCH: imageUndoRedo + Manual Paint: It doesn't works :s :s
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaPanelButtonContainer / creaPanelButtonContainer.cxx
index c2b954ac41e0fa50e77841d1c12599095feb6591..7477a38afb1abb3f9d5969b9792188218238a2fc 100644 (file)
@@ -2,7 +2,7 @@
  * @file creaPanelButtonContainer.h
  * @brief implements PanelButtonContainer class
  * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date  2011-05-28
+ * @date  2011-06-02
  */
 
 #include "creaPanelButtonContainer.h"
@@ -25,7 +25,7 @@ namespace creaPanelButtonContainer
                this->m_ButtonContainerSettings = bcSettings;
                this->m_ButtonPanel = new wxPanel( this );
 
-               //Class that manages the cartobutton event!!!
+               //Class that manages the event!!!
                TConcreteFunctor* functor = new TConcreteFunctor( this,
                    &PanelButtonContainer::GenericButtonEvent );
                //end of the event definition
@@ -65,7 +65,9 @@ namespace creaPanelButtonContainer
                            buttonName );
                        //changing the parent of the panel!
                        if ( this->m_ButtonPanel->GetParent( ) != this )
+                       {
                                this->m_ButtonPanel->Reparent( this );
+                       }//fi
                        //CartoSettingsPanel Management
                        this->m_AuiManager->GetPane( _T("ButtonPanel") ).window
                            = this->m_ButtonPanel;