More fixes for wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-06-30 13:43:34 +00:00
parent 83661a1347
commit 1a77875bed
6 changed files with 104 additions and 4 deletions

View File

@@ -1736,6 +1736,8 @@ wxTextCoord wxTextCtrl::GetRowsPerLine(wxTextCoord line) const
wxTextCoord wxTextCtrl::GetRowCount() const
{
wxTextCoord count = GetLineCount();
if (count == 0)
return 0;
if ( WrapLines() )
{
count = GetFirstRowOfLine(count - 1) +