diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 3eba2795d5..c9ea71e5d2 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -504,7 +504,7 @@ void wxSearchCtrl::LayoutControls() // position the subcontrols inside the client area m_searchButton->SetSize(x, (height - sizeSearch.y) / 2, - sizeSearch.x, height); + sizeSearch.x, sizeSearch.y); x += sizeSearch.x; x += searchMargin;