b=430814 r=bernd sr=roc a=dveditz

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@250885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2008-04-28 21:15:50 +00:00
parent 04091bcdba
commit e6dac5ec93

View File

@@ -587,6 +587,9 @@ TableBackgroundPainter::PaintCell(nsTableCellFrame* aCell,
PRInt32 colIndex;
aCell->GetColIndex(colIndex);
NS_ASSERTION(colIndex < mNumCols, "prevent array boundary violation");
if (mNumCols <= colIndex)
return NS_OK;
//Paint column group background
if (mCols && mCols[colIndex].mColGroup && mCols[colIndex].mColGroup->IsVisible()) {