X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..53c43278a9d71e15f43cbe359abea50d3775d8ad:/src/osx/stattext_osx.cpp?ds=sidebyside diff --git a/src/osx/stattext_osx.cpp b/src/osx/stattext_osx.cpp index dbaac3eede..1ff9003570 100644 --- a/src/osx/stattext_osx.cpp +++ b/src/osx/stattext_osx.cpp @@ -23,9 +23,6 @@ #include "wx/settings.h" #endif // WX_PRECOMP -#include "wx/notebook.h" -#include "wx/tabctrl.h" - #include "wx/osx/private.h" #include @@ -60,7 +57,11 @@ void wxStaticText::SetLabel(const wxString& label) m_labelOrig = label; // middle/end ellipsization is handled by the OS: - if ( HasFlag(wxST_ELLIPSIZE_END) || HasFlag(wxST_ELLIPSIZE_MIDDLE) ) + if ( HasFlag(wxST_ELLIPSIZE_END) || HasFlag(wxST_ELLIPSIZE_MIDDLE) +#if wxOSX_USE_COCOA // Cocoa has all three modes + || HasFlag(wxST_ELLIPSIZE_START) +#endif + ) { // remove markup wxString str(label);