X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71e030352d74e4e6aed28cfcb0ea6edf3d17af6e..00c813596e3eefdd028365acf9542355937e5531:/src/univ/statusbr.cpp diff --git a/src/univ/statusbr.cpp b/src/univ/statusbr.cpp index 679e664bce..e3c7127f12 100644 --- a/src/univ/statusbr.cpp +++ b/src/univ/statusbr.cpp @@ -30,6 +30,8 @@ #if wxUSE_STATUSBAR #ifndef WX_PRECOMP + #include "wx/settings.h" + #include "wx/dcclient.h" #endif #include "wx/statusbr.h" @@ -83,12 +85,11 @@ bool wxStatusBarUniv::Create(wxWindow *parent, wxRect wxStatusBarUniv::GetTotalFieldRect(wxCoord *borderBetweenFields) { - // determine the space we have for the fields - wxSize sizeBorders = m_renderer->GetStatusBarBorders(borderBetweenFields); - wxRect rect = GetClientRect(); // no, don't do this - the borders are meant to be inside this rect + // wxSize sizeBorders = + m_renderer->GetStatusBarBorders(borderBetweenFields); //rect.Deflate(sizeBorders.x, sizeBorders.y); // recalc the field widths if needed