]> git.saurik.com Git - wxWidgets.git/commitdiff
BCC5.5 compilation fix
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 3 Apr 2007 10:36:40 +0000 (10:36 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 3 Apr 2007 10:36:40 +0000 (10:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 8fb7e5197b3b4bb1acc7cdaa169d1b424912a563..f43d0b638fbb767c511a35de510b7d6f292106a9 100644 (file)
@@ -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);