From a39815bd30c62e13089f318028c9ee547940c4ad Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 17 Jan 2012 21:54:02 +0000 Subject: [PATCH] missing commit, see #10269 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/textentry_osx.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ; } -- 2.45.2