X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da8eb5f5bbf9b3eaf6e5cd48ac16484b1c787846..cd15bcaf50ead53ccf9d50965312f0dc754affb4:/src/osx/textentry_osx.cpp diff --git a/src/osx/textentry_osx.cpp b/src/osx/textentry_osx.cpp index d7175f8238..8fe74193ea 100644 --- a/src/osx/textentry_osx.cpp +++ b/src/osx/textentry_osx.cpp @@ -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 ; }