From: Stefan Csomor Date: Tue, 17 Jan 2012 21:54:02 +0000 (+0000) Subject: missing commit, see #10269 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a39815bd30c62e13089f318028c9ee547940c4ad missing commit, see #10269 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 ; }