]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/NSButton.h
Remove no longer used header.
[wxWidgets.git] / include / wx / cocoa / NSButton.h
index 7e8f8add03912101abce3bdf4227c4d854eaf6b8..0f027871cfc0694aeadb6e1d4e5e87fd52dedc14 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2002/12/09
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2002 David Elliott
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_NSBUTTON_H__
@@ -24,7 +24,8 @@ public:
     void AssociateNSButton(WX_NSButton cocoaNSButton);
     inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
     {
-        sm_cocoaHash.erase(cocoaNSButton);
+        if(cocoaNSButton)
+            sm_cocoaHash.erase(cocoaNSButton);
     }
 
 public: