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:
Julian Smart
1999-12-17 14:59:09 +00:00
parent 4e0f4f97d7
commit 17d8ee1cbd
6 changed files with 31 additions and 9 deletions

View File

@@ -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