BCC5.5 compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-04-03 10:36:40 +00:00
parent 50eeb96fbe
commit add4bb4044

View File

@@ -10629,9 +10629,10 @@ wxCoord wxGrid::CalcColOrRowLabelAreaMinSize(wxGridDirection direction)
for ( int rowOrCol = 0; rowOrCol < numRowsOrCols; rowOrCol++ ) for ( int rowOrCol = 0; rowOrCol < numRowsOrCols; rowOrCol++ )
{ {
lines.Clear(); lines.Clear();
StringToLines(calcRows ? GetRowLabelValue(rowOrCol)
: GetColLabelValue(rowOrCol), wxString label = calcRows ? GetRowLabelValue(rowOrCol)
lines); : GetColLabelValue(rowOrCol);
StringToLines(label, lines);
long w, h; long w, h;
GetTextBoxSize(dc, lines, &w, &h); GetTextBoxSize(dc, lines, &w, &h);