wallpaper over a zero pointer deref, bug 237421, r/sr=dbaron a=chofmann

git-svn-id: svn://10.0.0.236/trunk@153981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bmlk%gmx.de 2004-03-15 16:09:40 +00:00
parent 9e4e819c84
commit 7eba618f24
2 changed files with 8 additions and 2 deletions

View File

@ -345,7 +345,10 @@ TableBackgroundPainter::TranslateContext(nscoord aDX,
for (PRUint32 i = 0; i < mNumCols; i++) {
mCols[i].mCol.mRect.MoveBy(-aDX, -aDY);
if (lastColGroup != mCols[i].mColGroup) {
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null");
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null - bug 237421");
// we need to wallpaper a over zero pointer deref, bug 237421 will have the real fix
if (!mCols[i].mColGroup)
return;
mCols[i].mColGroup->mRect.MoveBy(-aDX, -aDY);
lastColGroup = mCols[i].mColGroup;
}

View File

@ -345,7 +345,10 @@ TableBackgroundPainter::TranslateContext(nscoord aDX,
for (PRUint32 i = 0; i < mNumCols; i++) {
mCols[i].mCol.mRect.MoveBy(-aDX, -aDY);
if (lastColGroup != mCols[i].mColGroup) {
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null");
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null - bug 237421");
// we need to wallpaper a over zero pointer deref, bug 237421 will have the real fix
if (!mCols[i].mColGroup)
return;
mCols[i].mColGroup->mRect.MoveBy(-aDX, -aDY);
lastColGroup = mCols[i].mColGroup;
}