From dc562ca5cbfe0f2c8bf45fb714620bed87464a6b Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Tue, 19 Dec 2000 21:16:41 +0000 Subject: [PATCH] fix mac bustage git-svn-id: svn://10.0.0.236/trunk@83863 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp | 3 ++- mozilla/layout/tables/BasicTableLayoutStrategy.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp b/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp index e24b084dcfe..b5af58f29d6 100644 --- a/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp +++ b/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp @@ -615,8 +615,9 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd PRInt32 numAutoCols = 0; nscoord spacingX = mTableFrame->GetCellSpacingX(); + PRInt32 spanX; // accumulate the various divisors to be used later - for (PRInt32 spanX = 0; spanX < aColSpan; spanX++) { + for (spanX = 0; spanX < aColSpan; spanX++) { nsTableColFrame* colFrame = mTableFrame->GetColFrame(aColIndex + spanX); if (!colFrame) continue; nscoord minWidth = PR_MAX(colFrame->GetMinWidth(), 0); diff --git a/mozilla/layout/tables/BasicTableLayoutStrategy.cpp b/mozilla/layout/tables/BasicTableLayoutStrategy.cpp index e24b084dcfe..b5af58f29d6 100644 --- a/mozilla/layout/tables/BasicTableLayoutStrategy.cpp +++ b/mozilla/layout/tables/BasicTableLayoutStrategy.cpp @@ -615,8 +615,9 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd PRInt32 numAutoCols = 0; nscoord spacingX = mTableFrame->GetCellSpacingX(); + PRInt32 spanX; // accumulate the various divisors to be used later - for (PRInt32 spanX = 0; spanX < aColSpan; spanX++) { + for (spanX = 0; spanX < aColSpan; spanX++) { nsTableColFrame* colFrame = mTableFrame->GetColFrame(aColIndex + spanX); if (!colFrame) continue; nscoord minWidth = PR_MAX(colFrame->GetMinWidth(), 0);