git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45235
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for ( int rowOrCol = 0; rowOrCol < numRowsOrCols; rowOrCol++ )
{
lines.Clear();
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);
long w, h;
GetTextBoxSize(dc, lines, &w, &h);