]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/stattext.cpp
correction to maintain data array in synch with string array
[wxWidgets.git] / src / mac / stattext.cpp
index 22653f651e02c6b0370599febc420f63e240260c..06d6fe9c3c1ec67031bb0c4a0af1fa889f3b17b4 100644 (file)
@@ -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() ;