]> git.saurik.com Git - wxWidgets.git/commitdiff
removed apparent off by 1 bug in the end line calculation in ShowPosition() (part...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Sep 2007 10:55:35 +0000 (10:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Sep 2007 10:55:35 +0000 (10:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/textctrl.cpp

index 605ac422cda0e6b8bdc7ae85138e7cf58ea4b1e6..42d6364c2becf57e8c2b360f2e9917d4b84c1a93 100644 (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++;