]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/textentry_osx.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / src / osx / textentry_osx.cpp
index d7175f8238e1877a6a18ed8eadc87634ffb46180..8fe74193ea6ef0d9849b5e3d87db1ad5104ad8b4 100644 (file)
@@ -77,6 +77,8 @@ void wxTextEntry::GetSelection(long* from, long* to) const
 
 void wxTextEntry::SetMaxLength(unsigned long len)
 {
+    if ( GetTextPeer()->CanClipMaxLength() )
+        GetTextPeer()->SetMaxLength(len);
     m_maxLength = len ;
 }