From: Václav Slavík Date: Tue, 3 Apr 2007 10:36:40 +0000 (+0000) Subject: BCC5.5 compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/add4bb404417cdaf0155a939a473a0293e414005 BCC5.5 compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 8fb7e5197b..f43d0b638f 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -10629,9 +10629,10 @@ wxCoord wxGrid::CalcColOrRowLabelAreaMinSize(wxGridDirection direction) for ( int rowOrCol = 0; rowOrCol < numRowsOrCols; rowOrCol++ ) { lines.Clear(); - StringToLines(calcRows ? GetRowLabelValue(rowOrCol) - : GetColLabelValue(rowOrCol), - lines); + + wxString label = calcRows ? GetRowLabelValue(rowOrCol) + : GetColLabelValue(rowOrCol); + StringToLines(label, lines); long w, h; GetTextBoxSize(dc, lines, &w, &h);