]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
Fixed premature exit of helpview sample and utility
[wxWidgets.git] / src / univ / textctrl.cpp
index ae6e1d5d4547e50e7dd61c12881ab7dd8dbeae94..ebb49dcc83037353cefa7873c71e7014a3a52cda 100644 (file)
@@ -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
         {