X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/381dd4bfa29889c54640a61a99b9764309a53f57..5ebdc86afc95a60fbeb0b2a71c38dd26c8a1b0b4:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 86967c3add..6d55b55949 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -62,7 +62,6 @@ #include #endif -#if !USE_SHARED_LIBRARY // ---------------------------------------------------------------------------- // event tables and other macros @@ -87,7 +86,6 @@ BEGIN_EVENT_TABLE(wxTextCtrl, wxControl) EVT_UPDATE_UI(wxID_REDO, wxTextCtrl::OnUpdateRedo) END_EVENT_TABLE() -#endif // USE_SHARED_LIBRARY // ============================================================================ // implementation @@ -862,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