From 294d195c3cfd9b39b8e1855e9a89dba86bef0082 Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Wed, 1 Mar 2000 04:10:21 +0000 Subject: [PATCH] Minor compilation fix for Borland git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 04cda80f0c..a03beb0823 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7142,8 +7142,12 @@ void wxGrid::AutoSizeColOrRow( int colOrRow, bool setAsMin, bool column ) // now also compare with the column label extent wxCoord w, h; dc.SetFont( GetLabelFont() ); - dc.GetTextExtent( column ? GetColLabelValue(col) - : GetRowLabelValue(row), &w, &h ); + + if ( column ) + dc.GetTextExtent( GetColLabelValue(col), &w, &h ); + else + dc.GetTextExtent( GetRowLabelValue(col), &w, &h ); + extent = column ? w : h; if ( extent > extentMax ) { -- 2.45.2