diff --git a/mozilla/layout/tables/nsTableFrame.cpp b/mozilla/layout/tables/nsTableFrame.cpp index d8ea98a198b..458d8a2cab3 100644 --- a/mozilla/layout/tables/nsTableFrame.cpp +++ b/mozilla/layout/tables/nsTableFrame.cpp @@ -1324,7 +1324,8 @@ nsTableFrame::InsertRowGroups(nsIFrame* aFirstRowGroupFrame, nsAutoVoidArray rows; // Loop over the rowgroups and check if some of them are new, if they are // insert cellmaps in the order that is predefined by OrderRowGroups, - for (PRUint32 rgIndex = 0; rgIndex < numRowGroups; rgIndex++) { + PRUint32 rgIndex; + for (rgIndex = 0; rgIndex < numRowGroups; rgIndex++) { nsIFrame* kidFrame = aFirstRowGroupFrame; while (kidFrame) { nsTableRowGroupFrame* rgFrame = GetRowGroupFrame(kidFrame); @@ -1349,7 +1350,7 @@ nsTableFrame::InsertRowGroups(nsIFrame* aFirstRowGroupFrame, ResetRowIndices(aFirstRowGroupFrame, aLastRowGroupFrame); //now that the cellmaps are reordered too insert the rows - for (PRUint32 rgIndex = 0; rgIndex < numRowGroups; rgIndex++) { + for (rgIndex = 0; rgIndex < numRowGroups; rgIndex++) { nsIFrame* kidFrame = aFirstRowGroupFrame; while (kidFrame) { nsTableRowGroupFrame* rgFrame = GetRowGroupFrame(kidFrame);