]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/stattext.mm
removed assert which became incorrect after last change
[wxWidgets.git] / src / cocoa / stattext.mm
index 12a326714b4a6cadd0d27e6d88dabefa639b1a62..20ccf8ce4791b68fd05342bc8cba9d92995613ae 100644 (file)
@@ -60,7 +60,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID winid,
 
 wxStaticText::~wxStaticText()
 {
-    DisassociateNSTextField(m_cocoaNSView);
+    DisassociateNSTextField(GetNSTextField());
 }
 
 void wxStaticText::SetLabel(const wxString& label)