X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a685dd314cc5daeb1492a4a57f475df91d6cd126..ccea21ccf8a8c7f2012c890c9c1b916d0e725db2:/src/univ/textctrl.cpp diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index ae6e1d5d45..ebb49dcc83 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -740,7 +740,7 @@ bool wxTextCtrl::Create(wxWindow *parent, RecalcFontMetrics(); SetValue(value); - SetBestSize(size); + SetInitialSize(size); m_isEditable = !(style & wxTE_READONLY); @@ -3732,7 +3732,7 @@ void wxTextCtrl::RefreshTextRange(wxTextPos start, wxTextPos end) { // intermediate line or the last one but we need to refresh it // until the end anyhow - do it - posCount = wxSTRING_MAXLEN; + posCount = wxString::npos; } else // last line {