X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..155ecd4c4221d3bbc7aa93d472d11948f21d21ab:/src/mac/classic/button.cpp diff --git a/src/mac/classic/button.cpp b/src/mac/classic/button.cpp index 12864683c9..a12aa3a9b9 100644 --- a/src/mac/classic/button.cpp +++ b/src/mac/classic/button.cpp @@ -16,7 +16,11 @@ #endif #include "wx/button.h" -#include "wx/panel.h" + +#ifndef WX_PRECOMP + #include "wx/panel.h" +#endif + #include "wx/stockitem.h" IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) @@ -90,7 +94,7 @@ wxSize wxButton::DoGetBestSize() const { wxSize sz = GetDefaultSize() ; - int wBtn = m_label.Length() * 8 + 12 + 2 * kMacOSXHorizontalBorder ; + int wBtn = m_label.length() * 8 + 12 + 2 * kMacOSXHorizontalBorder ; if (wBtn > sz.x) sz.x = wBtn;