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:
@@ -1648,6 +1648,9 @@ wxString wxTextCtrl::GetLineText(wxTextCoord line) const
|
|||||||
}
|
}
|
||||||
else // multiline
|
else // multiline
|
||||||
{
|
{
|
||||||
|
//this is called during DoGetBestSize
|
||||||
|
if (line == 0 && GetLineCount() == 0) return wxEmptyString ;
|
||||||
|
|
||||||
wxCHECK_MSG( (size_t)line < GetLineCount(), _T(""),
|
wxCHECK_MSG( (size_t)line < GetLineCount(), _T(""),
|
||||||
_T("line index out of range") );
|
_T("line index out of range") );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user