]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
Added wxFileName.
[wxWidgets.git] / src / generic / grid.cpp
index 2a92e9b7487827d48d2cd189ad874a8d777254ec..0dae989bc83365c81efc067c6868f0869b8e8453 100644 (file)
@@ -8106,7 +8106,7 @@ void wxGrid::AutoSizeColOrRow( int colOrRow, bool setAsMin, bool column )
     if ( column )
         dc.GetTextExtent( GetColLabelValue(col), &w, &h );
     else
-        dc.GetTextExtent( GetRowLabelValue(col), &w, &h );
+        dc.GetTextExtent( GetRowLabelValue(row), &w, &h );
 
     extent = column ? w : h;
     if ( extent > extentMax )