In addition to breaking VC6 build, the code also rather strangely declared
"row" inside a for loop first and then declared it in the function scope.
Leave just the second declaration.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74313
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const int colCount = table->GetColumnCount();
wxArrayInt rowTops;
rowTops.Add(0, rowCount+1);
const int colCount = table->GetColumnCount();
wxArrayInt rowTops;
rowTops.Add(0, rowCount+1);
- for (int row = 0; row < rowCount; ++row)
+ int row;
+ for (row = 0; row < rowCount; ++row)
{
for (int column = 0; column < colCount; ++column)
{
{
for (int column = 0; column < colCount; ++column)
{
for (row = 0; row < rowCount-1; ++row) // -1 as the bottom row can't rowspan
{
for (row = 0; row < rowCount-1; ++row) // -1 as the bottom row can't rowspan
{
- for (col = 0; col < colCount; ++col)
+ for (int col = 0; col < colCount; ++col)
{
wxRichTextCell* cell = table->GetCell(row, col);
if (cell && cell->IsShown())
{
wxRichTextCell* cell = table->GetCell(row, col);
if (cell && cell->IsShown())
// There were overflowing rowspanning cells, so layout yet again to make the increased row depths show
for (row = 0; row < rowCount; ++row)
{
// There were overflowing rowspanning cells, so layout yet again to make the increased row depths show
for (row = 0; row < rowCount; ++row)
{
- for (col = 0; col < colCount; ++col)
+ for (int col = 0; col < colCount; ++col)
{
wxRichTextCell* cell = table->GetCell(row, col);
if (cell && cell->IsShown())
{
wxRichTextCell* cell = table->GetCell(row, col);
if (cell && cell->IsShown())