]> git.saurik.com Git - wxWidgets.git/commitdiff
missing commit, see #10269
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 17 Jan 2012 21:54:02 +0000 (21:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 17 Jan 2012 21:54:02 +0000 (21:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 ;
 }