X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f1ae4143271ae63a17e052a1a471d16e9cd8c44..cbee8f8dc777aa7131df267f78be377d85a10cda:/src/mac/stattext.cpp?ds=sidebyside diff --git a/src/mac/stattext.cpp b/src/mac/stattext.cpp index 22653f651e..06d6fe9c3c 100644 --- a/src/mac/stattext.cpp +++ b/src/mac/stattext.cpp @@ -55,6 +55,9 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, void wxStaticText::OnDraw( wxDC &dc ) { + if (m_width <= 0 || m_height <= 0) + return; + PrepareDC(dc); dc.Clear() ;