Misc small mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -860,7 +860,7 @@ void wxTextCtrl::AdjustSpaceLimit()
|
||||
#ifndef __WIN16__
|
||||
unsigned int len = ::GetWindowTextLength(GetHwnd()),
|
||||
limit = ::SendMessage(GetHwnd(), EM_GETLIMITTEXT, 0, 0);
|
||||
if ( len > limit )
|
||||
if ( len >= limit )
|
||||
{
|
||||
limit = len + 0x8000; // 32Kb
|
||||
|
||||
|
Reference in New Issue
Block a user