Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
assertions for bad voidarray indexes. r=jst, sr=waterson
This commit is contained in:
@@ -2606,7 +2606,7 @@ nsTableFrame::RemoveFrame(nsIPresContext* aPresContext,
|
||||
// remove the cols from the table
|
||||
PRInt32 colX;
|
||||
for (colX = lastColIndex; colX >= firstColIndex; colX--) {
|
||||
nsTableColFrame* colFrame = (nsTableColFrame*)mColFrames.ElementAt(colX);
|
||||
nsTableColFrame* colFrame = (nsTableColFrame*)mColFrames.SafeElementAt(colX);
|
||||
if (colFrame) {
|
||||
RemoveCol(*aPresContext, colGroup, colX, PR_TRUE, PR_FALSE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user