removed apparent off by 1 bug in the end line calculation in ShowPosition() (part of patch 1716763)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-09-16 10:55:35 +00:00
parent 86909f4c89
commit 99b4164c2c

View File

@ -1965,7 +1965,7 @@ void wxTextCtrl::ShowPosition(wxTextPos pos)
{
// finding the last line is easy if each line has exactly
// one row
yEnd = yStart + rectText.height / GetLineHeight() - 1;
yEnd = yStart + rectText.height / GetLineHeight();
}
if ( yEnd < y )
@ -2418,7 +2418,7 @@ void wxTextCtrl::UpdateTextRect()
WData().m_rowFirstInvalid = 0;
// increase timestamp: this means that the lines which had been
// laid out before will be relayd out the next time LayoutLines()
// laid out before will be relaid out the next time LayoutLines()
// is called because their timestamp will be smaller than the
// current one
WData().m_timestamp++;