]> git.saurik.com Git - wxWidgets.git/commitdiff
a couple of terrible typos fixed
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Feb 2000 17:25:43 +0000 (17:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Feb 2000 17:25:43 +0000 (17:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 55107437f39e68199d51c2527bfad1ebf899bb77..c04690a1e9f826ddae2bd09a99da347c6c7e4d60 100644 (file)
@@ -2577,7 +2577,7 @@ void wxGrid::CalcRowLabelsExposed( wxRegion& reg )
             if ( GetRowBottom(row) < top )
                 continue;
 
-            if ( GetRowTop(top) > bottom )
+            if ( GetRowTop(row) > bottom )
                 break;
 
             m_rowLabelsExposed.Add( row );
@@ -4320,16 +4320,16 @@ void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & reg )
     int i;
     for ( i = 0; i < m_numRows; i++ )
     {
-        int bottom = GetRowBottom(i) - 1;
+        int bot = GetRowBottom(i) - 1;
 
-        if ( bottom > bottom )
+        if ( bot > bottom )
         {
             break;
         }
 
-        if ( bottom >= top )
+        if ( bot >= top )
         {
-            dc.DrawLine( left, bottom, right, bottom );
+            dc.DrawLine( left, bot, right, bot );
         }
     }