fix bug with univ creating textctrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2004-06-20 13:11:37 +00:00
parent 65f8780cb7
commit 290e4c83d9

View 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") );