]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
pretend that we support all encodings instead of not supporting any of them under...
[wxWidgets.git] / src / univ / textctrl.cpp
index b07df4b00eef8a36ee475c33462ccc2cc626a9ca..3b15ef1070fea12489dd660c028822a9589f8d76 100644 (file)
@@ -1648,6 +1648,9 @@ wxString wxTextCtrl::GetLineText(wxTextCoord line) const
     }
     else // multiline
     {
+        //this is called during DoGetBestSize
+        if (line == 0 && GetLineCount() == 0) return wxEmptyString ;
+       
         wxCHECK_MSG( (size_t)line < GetLineCount(), _T(""),
                      _T("line index out of range") );