diff --git a/kicad/commandframe.cpp b/kicad/commandframe.cpp index 1ed6f66f5b..60041d3829 100644 --- a/kicad/commandframe.cpp +++ b/kicad/commandframe.cpp @@ -36,7 +36,7 @@ LAUNCHER_PANEL::LAUNCHER_PANEL( wxWindow* parent ) : wxPanel( parent, wxID_ANY ) { - m_bitmapButtons_maxHeigth = 0; + m_bitmapButtons_maxHeight = 0; m_buttonSeparation = 10; // control of command buttons position m_buttonsListPosition.x = m_buttonSeparation; m_buttonsListPosition.y = m_buttonSeparation; @@ -48,7 +48,7 @@ LAUNCHER_PANEL::LAUNCHER_PANEL( wxWindow* parent ) : int LAUNCHER_PANEL::GetPanelHeight() const { - int height = m_buttonsListPosition.y + m_bitmapButtons_maxHeigth + int height = m_buttonsListPosition.y + m_bitmapButtons_maxHeight + m_buttonSeparation; return height; } @@ -104,8 +104,8 @@ wxBitmapButton* LAUNCHER_PANEL::AddBitmapButton( wxWindowID aId, const wxBitmap& buttSize.x = aBitmap.GetWidth() + btn_margin; buttSize.y = aBitmap.GetHeight() + btn_margin; - if( m_bitmapButtons_maxHeigth < buttSize.y ) - m_bitmapButtons_maxHeigth = buttSize.y; + if( m_bitmapButtons_maxHeight < buttSize.y ) + m_bitmapButtons_maxHeight = buttSize.y; wxBitmapButton* btn = new wxBitmapButton( this, aId, aBitmap, buttPos, buttSize ); m_buttonLastPosition.x += buttSize.x + m_buttonSeparation; diff --git a/kicad/kicad.h b/kicad/kicad.h index 5e319e70d0..66756e0d8a 100644 --- a/kicad/kicad.h +++ b/kicad/kicad.h @@ -308,7 +308,7 @@ private: * of the first bitmap button */ wxPoint m_buttonLastPosition; // position of the last button in the window - int m_bitmapButtons_maxHeigth; // height of bigger bitmap buttons + int m_bitmapButtons_maxHeight; // height of bigger bitmap buttons // Used to calculate the height of the panel. public: LAUNCHER_PANEL( wxWindow* parent );