From: Vadim Zeitlin Date: Sat, 25 Nov 2000 23:23:41 +0000 (+0000) Subject: typo in AutosizeRowOrCol fixed (bug 115437) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ee495e4cab0139e65ac7a9867a57cef600e5c24b typo in AutosizeRowOrCol fixed (bug 115437) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 2a92e9b748..0dae989bc8 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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 )